Ok so if I wanted to do a simple while loop with a user inputting a number and a function doing some calculations, would it be possible to have it so that the user can type in 'quit' instead of a float if they want to quit? Thanks in advance.
Kur3k that code will break because your exception handling is wrong.
The code dos not what what is ask for.
It check if an integer for odd/even and has no 'quit' check out.
The code example should like this to make sense.
if number % 2 == 0:
number = int(raw_input("> Number "))
if check(number) == True:
print 'Number did pass it is a even number'
print "Wrong input only numbers,try again"
More like this is what ask for.
my_numbers = 
print 'Enter numbers | calculate <c> quit <q>'
n = raw_input('Enter a number: ')
if n.lower() == 'q':
elif n.lower() == 'c':
print 'Please only numbers,try again'