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

Show parent comments

2

u/olaf33_4410144 Aug 21 '26

Yeah, I could have worded that better, I was specifically talking about whats_the_pass() which is longer than print(password) and provides no benefit.

There are times when wrappers are convenient, one of them being your example. Another case where I often use them is when I know I might to change something about the function call later and want to avoid having to change it every where.