I just start learning python, and would like to ask the reader to input a number,but i would like to skip comma and space that reader input.
a = input("input a number:")
x = y
print(dec(x))
However, if i use split, it would become a list or 2 number
for example, when user input 12,3456
,
and y
would become ['12', '3456']
And my expected output is 123456
as a integer but not a list with two values.
I tried to use replace
before, but it said
"TypeError: object of type 'int' has no len()"