Python Forum
I am asking for a review of my homework to confirm I completed all steps
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am asking for a review of my homework to confirm I completed all steps
#6
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().
Reply


Messages In This Thread
RE: I am asking for a review of my homework to confirm I completed all steps - by jefsummers - Jun-24-2020, 07:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Requesting homework help and maybe a little code review… JonnyEnglish 0 1,644 Jan-16-2020, 04:34 PM
Last Post: JonnyEnglish

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020