Pretty new to Python and am using 2.7 to script.
a = raw_input("Input number or decimal only")
Try:
Y = float(a)
print a
except ValueError:
print "wrong input, try again"
I need to loop this - if the input is either alphanumeric or letters, it should ask for input again.
I can't seem to find a way to slide in a while loop in it.
(Python newbie, please be kind!)