r/PythonLearning • • Aug 14 '25

Why I didn't getting default value

Post image
5 Upvotes

18 comments sorted by

View all comments

2

u/Dramatic-Drawing-844 Aug 14 '25
if name:
    hello(name)
else:
    hello()