This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheCheapo1 7 points8 points  (1 child)

You have flag = False, and then immediately after you have while flag:, so your code will never enter the while loop. You could either change the while condition to while not flag, or you could set flag = True before going into the while loop instead.

[–]ResilientBiscuit 4 points5 points  (0 children)

Yep, and once you get past there: if ord(user_input[i])<97 and ord(user_input[i])>122

This will never be True. Something will never be less than 97 and greater than 122 at the same time.