Python Forum
Printing class results returns 'none'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing class results returns 'none'
#2
It because you print the method return. There nothing to return so None is return.
Remove the print from
print(player.getStats())
and None won't print anymore.
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
Printing class results returns 'none' - by Lawr3y - Aug-16-2019, 12:22 AM
RE: Printing class results returns 'none' - by Windspar - Aug-16-2019, 12:53 AM

Forum Jump:

User Panel Messages

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