classes have methods and attributes in pythoncreating method defines class behavior the word method is the oop name given to function that is defined within class to sum upclass functions is synonym for methods class variables is synonym for name attributes class blueprint for an instance with exact behavior object one of the instances of the classperform functionality defined in the class type indicates the class the instance belongs to attribute any object valueobject attribute method "callable attributedefined in the class observe the following piece of code for examplevar "hellojohnprinttype (var)or print(var upper()upper(method is calledhellojohn creation and instantiation the following code shows how to create our first class and then its instance class myclass(object)pass create first instance of myclass this_obj myclass(print(this_objanother instance of myclass that_obj myclass(print (that_objhere we have created class called myclass and which does not do any task the argument object in myclass class involves class inheritance and will be discussed in later pass in the above code indicates that this block is emptythat is it is an empty class definition let us create an instance this_obj of myclass(class and print it as shown