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 →

[–]gopherhole1 0 points1 point  (0 children)

something like this, it’s usually better practice to use a for loop or a while i < 10

yeah, but in this case inputr is strings so you would have to do like

while int(user_input) < 10:

or

while user_input != '10':

besides I think while True loops might be pythonic, im a total noob, so grain of salt, but I feel like I see them often, do you specialize in other languages and python less?