program:class Hello(): variable="Myname" def func(): print("It is Method")-In This program, variable in class is known as attribute and function in class is known as Method.
class Hello():
variable="Myname"
def func():
print("It is Method")
-In This program, variable in class is known as attribute and function in class is known as Method.