I am creating a loop, and for one of the ?possibilities (or answer things or whatever they're called when you can execute commands from the results) i have a result of None.
This is the code.
ready = False
while not ready:
input = raw_input("Are you ready?")
if input is not None:
print 'you said something'
done = True
This is a half-finished transitional code thing, but what I am trying to get this code to do is: repeatedly ask someone if they are ready, until they say "yes" in which case the code continues, or if they say "go away" then the program will exit.
And anyway, to achieve this, I (think I) have to make a variable of None equalling '' (or do I?) and every time i run the program I get SyntaxWarning-s.
Is there any way to stop these errors?