Jun-24-2020, 07:49 PM
You'll get it. There are issues in this code though.
In line 24 you call main(). That makes the main() function recursive. Once you successfully pass and return it will come back to line 26.
Your functions don't return anything. Sometimes they print but never return a value. Better form is for a function to do a task, and allow the calling script to handle input/output.
Your initial functions have no arguments.
Not sure what you expect the code after line 59 to do. That code will execute after the main() function.
Generally bad idea to name a function main. As your skills develop you will learn about __main__ which would be easily confused with main().
In line 24 you call main(). That makes the main() function recursive. Once you successfully pass and return it will come back to line 26.
Your functions don't return anything. Sometimes they print but never return a value. Better form is for a function to do a task, and allow the calling script to handle input/output.
Your initial functions have no arguments.
Not sure what you expect the code after line 59 to do. That code will execute after the main() function.
Generally bad idea to name a function main. As your skills develop you will learn about __main__ which would be easily confused with main().