Python Forum
not find the resone it not prints
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
not find the resone it not prints
#4
The default return value for functions and methods is None. To return something else the function or method must include a "return x" statement where "x" is the thing you want to return. Your "roll_die" method (it should be called "roll") does not specify a return value, so it returns None.
Reply


Messages In This Thread
not find the resone it not prints - by yukhei - May-22-2020, 12:41 PM
RE: not find the resone it not prints - by deanhystad - May-22-2020, 03:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  not finding the resone for the error yukhei 3 1,785 May-22-2020, 03:39 PM
Last Post: deanhystad
  not finding the resone for the error yukhei 3 2,144 May-21-2020, 04:43 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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