Example & Tutorial understanding programming in easy ways.

What is Attribute in Python Class

program:


class Hello():

       name="Myname"

obj=Hello()

print(obj.name)

//output is Myname


-In this program, name is the Attribute

Read More →