r/PythonLearning • • Aug 24 '25

My first code

Post image

First time coding
any ideias or ways to improve it?

76 Upvotes

21 comments sorted by

View all comments

1

u/CraigAT Aug 24 '25

I don't think you want to "while" statements at the bottom. Instead you may want a while loop around the login process so you can repeat it again if the wrong details are entered. You may also want to count the number of wrong attempts and stop or lock out the user.