Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Classes error
#2
Well, person is a string. You set it to a string with this line:

person = chr(number)
As the return value of the chr function is a string. If you want it to be an instance of the Practice class, you need to assign it as one like you did with a, b, c, d, and e.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Classes error - by BluezamX - Nov-16-2016, 05:27 PM
RE: Classes error - by ichabod801 - Nov-16-2016, 06:18 PM
RE: Classes error - by BluezamX - Nov-16-2016, 06:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  classes , error at line 88 name finnKategori not defined sydlender 3 3,099 Nov-12-2018, 09:08 PM
Last Post: buran
  Using classes? Can I just use classes to structure code? muteboy 5 5,305 Nov-01-2017, 04:20 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

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