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
import re
p = re.compile('\d+(\.\d+)?')
a = raw_input('How much is 1 share in that company? ')
while p.match(a) == None:
print "You need to write a number!\n"
a = raw_input('How much is 1 share in that company? ')