MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1mvbdfg/day_1_second_program/n9qdfg7/?context=3
r/PythonLearning • u/Red_Priest0 • Aug 20 '25
20 comments sorted by
View all comments
2
Consider using return statements in your functions instead of printing.And i don't think the main logic needs to be a function since you really dont reuse it ( the main reason of a function is if the code is gonna be used multiple times).
1 u/Red_Priest0 Aug 20 '25 Thanks I will use return type
1
Thanks I will use return type
2
u/Sneaky_processor Aug 20 '25
Consider using return statements in your functions instead of printing.
And i don't think the main logic needs to be a function since you really dont reuse it ( the main reason of a function is if the code is gonna be used multiple times).