Thank you for all of your responses to:

class Student():
    def__init__(self, name, major, gpa, is_on_probation):
        self.name = name
        self.major = major
        self.gpa = gpa
        self.is_on_probation = is_on_probation


import Student
student1 = Student('Jim', 'Business', 3.1, False)
print(student1.name)

I don't understand this error message. Thank you so much, Glenn Dickerson

Traceback (most recent call last):
  File "/home/glen/app.py", line 1, in <module>
    import Student
  File "/home/glen/Student.py", line 2
    def__init__(self, name, major, gpa, is_on_probation):
                                                        ^
SyntaxError: invalid syntax
>>>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to