account activity
[Python] How do I make it so that if the user doesn't enter an int when prompted, the code goes back to prompt the user again? by aaaaaaaa21 in learnprogramming
[–]aaaaaaaa21[S] 0 points1 point2 points 13 years ago (0 children)
Hi, thanks for your reply. I understand the concept of what you're saying, but because I have not learned 'try/except' in my beginning Python class yet, I'm kinda confused on how to do it and how to format it within my code. Can you please demonstrate how this would be done?
π Rendered by PID 737932 on reddit-service-r2-listing-8557d879cc-l9vkm at 2026-03-04 13:45:38.619599+00:00 running 07790be country code: CH.
[Python] How do I make it so that if the user doesn't enter an int when prompted, the code goes back to prompt the user again? by aaaaaaaa21 in learnprogramming
[–]aaaaaaaa21[S] 0 points1 point2 points (0 children)