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 shar
EAFP
try: x = float(a) except ValueError: print("You must enter a number")