Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Max number of three
#4
(Oct-09-2019, 07:49 AM)buran Wrote: We don't see the actual assignment, but I really doubt they expect you to just wrap the built-in max() function

I know you don't have to use max (), but I used it because I wanted to see how it worked.

(Oct-09-2019, 07:35 AM)perfringo Wrote: If you are not returning (or yield) anything from function it returns None. As you are not returning anything from max_of_three you get None. As assignment states - you should return maximum of three, so return max(args) should be in compliance with assignment.

Thanks it works now!!
Reply


Messages In This Thread
Max number of three - by RavCOder - Oct-09-2019, 07:28 AM
RE: Max number of three - by perfringo - Oct-09-2019, 07:35 AM
RE: Max number of three - by buran - Oct-09-2019, 07:49 AM
RE: Max number of three - by RavCOder - Oct-09-2019, 08:03 AM

Forum Jump:

User Panel Messages

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