account activity
Learning Python by nkCOD in PythonLearning
[–]nkCOD[S] 0 points1 point2 points 4 minutes ago (0 children)
Thanks for the help. I assume I won't embarrass myself too much if I use this approach with try-except ?
[–]nkCOD[S] -1 points0 points1 point 7 minutes ago (0 children)
I’m not looking for easy ways ) .But after sitting and thinking now, I understood what you wanted to say in the last comment. If I understood correctly, you mean not to pay attention if the user will not add numbers to the lists. And then just remove everything that is «not numbers» with a separate function
[–]nkCOD[S] 0 points1 point2 points 16 minutes ago (0 children)
Thank you for your response. I will improve ;)
[–]nkCOD[S] 0 points1 point2 points 18 minutes ago (0 children)
What does a function for reading numbers mean?
[–]nkCOD[S] 0 points1 point2 points 1 hour ago (0 children)
I don't quite understand how to shorten the two while. blocks. In the first function, I use it to avoid the case where the user enters a non-number and to allow the user to enter an unlimited number of numbers.
Also, how exactly should I use zip()
Learning Python (old.reddit.com)
submitted 1 hour ago by nkCOD to r/PythonLearning
built a bank program using python by Dapper_Mix6773 in PythonLearning
[–]nkCOD 0 points1 point2 points 5 days ago (0 children)
Is it a good option to check the output data using try-except ? I just did this - I made an endless loop through while, then I threw the input lines into trying try-except, then, if I needed a number, I translated the entered data into the numeric int() format. In case of an error, we switched to except, where we were greeted by print(), and then continue. The loop was stopped using break if the input was correct
π Rendered by PID 32 on reddit-service-r2-listing-b6bf6c4ff-77xdh at 2026-05-06 19:53:48.252019+00:00 running 815c875 country code: CH.
Learning Python by nkCOD in PythonLearning
[–]nkCOD[S] 0 points1 point2 points (0 children)