Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about NameError
#2
line 27 student needs to be titlecase.

there's more:
s1, s2, and s3 are classes of Student, they are not strings.
Therefore you must treat then as such.

You are too liberal with the use of name student and Student (which are two different objects)
Than999 likes this post
Reply


Messages In This Thread
Question about NameError - by Than999 - Dec-10-2021, 03:08 PM
RE: Question about NameError - by Larz60+ - Dec-10-2021, 03:53 PM
RE: Question about NameError - by Than999 - Dec-10-2021, 03:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner question NameError amazing_python 6 2,633 Aug-13-2021, 07:28 AM
Last Post: amazing_python
  NameError: NameError: global name 'BPLInstruction' is not defined colt 7 4,559 Oct-27-2019, 07:49 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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