r/PythonLearning • • Aug 21 '26 • Bravo 1

Rate my python program

Post image

i made a Python program, i dont know what else to say

86 Upvotes

42 comments sorted by

View all comments

5

u/olaf33_4410144 Aug 21 '26

I'm not a fan of the functions that only call another function e. g. whats_my_name().

Also change_the_pass() could return the new password, then you could avoid the clunky global thing.

If you want to learn something you could also look into the if name == "main" pattern. For small scripts as yours it doesn't really matter but it's commonly used once things get more complex.

All in all it's quite good though.

0

u/WesternTrip8578 Aug 21 '26

Thanks for the advice, I will look into it.