Sep-02-2020, 05:42 PM
student_name() is set up as a class method. It shouldn't be called directly as you do on line 10. Instead, you should be capturing the instance created on line 9 and use that to call the method.
... mystudent = Student("mohammad ", 1123456789," PhD Student") print(mystudent.student_name())
Output:name is :mohammad ,CNE is :1123456789 and Level is : PhD Student