Author Topic: What's wrong with this Python program?  (Read 1193 times)

Code: [Select]
choices = [1,2,3,4,5]
for choice in choices:
     if choice is 1:
          continue
     elif choice is 3:
          break
     print choice

result = 1 in choices
print result
result = 4 in choices
print result
result = 9001 in choices
print result
Try that. It should be self-explanatory.

I actually fixed the program with other stuff. :U
Thanks for all the help!
Also, I'm gonna use the above code in my next calculator :D
Why hello Max Farr!
HAI AERIS <3

Hurp durp I know your name.


Hurp durp I know your name.
Why's it matter that you know Max Farr's name?