Python Object-Oriented Python Instant Objects Your first class

salih bag
salih bag
1,779 Points

Then print() out the name attribute of your instance.

It says ''Couldn't find 'Student'.''

first_class.py
class Student:
    name = 'Salih'

me = Student()
Print(me.name)

2 Answers

Steven Parker
Steven Parker
203,995 Points

The error message is a bit confusing, but the issue is the spelling of "Print" (with a capital "P") instead of "print" (all lower case).

salih bag
salih bag
1,779 Points

thank you so much

jhon white
jhon white
19,639 Points

you should use (p) not (P) in (print) function. Everything else is looking good. good luck:)