def input_base():
print('please enter the number')
base = input("Number : ")
while not base.isdigit():
print("It`s not integer")
base = input("R.Number : ")
return base
...
This is my code and the error is:
AttributeError : 'int' object has no attribute 'isdigit'
I don't know how I could fix this code. I think, I should install some application, such a python-numpy
, inside Ubuntu...
Is that right?