Код: Выделить всё
a = raw_input('How much is 1 share in that company? ')
while not a.isdigit():
print("You need to write a number!\n")
a = raw_input('How much is 1 share in that company? ')
Поэтому пользователь должен иметь возможность вводить как 9, так и 9.2, но не abc.
Как мне это сделать?
Подробнее здесь: https://stackoverflow.com/questions/413 ... for-floats