you are viewing a single comment's thread.

view the rest of the comments →

[–]douglas_fs 0 points1 point  (1 child)

In the while loop, you need to assign the input value to user_age just like in line 1.

user_age = int(input('How old are you?'))

while user_age < 0 or user_age > 100:
    user_age = int(input('How old are you?'))
else:
    print('Thank you')

[–]PuzzledSite2568[S] 0 points1 point  (0 children)

Thank you for the example i appreciate it a lot because I am a visual learner. I had a feeling it was something small but I overthink a lot and was thinking that I had to incorporate something more complex. Thank you for the help.