Python OOP Part 1
Python is an object-oriented programming language. Object-oriented programming (OOP) focuses on creating reusable patterns of code. Class — A blueprint created by a programmer for an object. This defines a set of attributes that will characterize any object that is instantiated from this class. Object — An instance of a class. This is the realized version of the class, where the class is manifested in the program. We define classes by using the class keyword, similar to how we define functions by using the def keyword. Objects can store data using ordinary variables that belong to the object. Variables that belong to an object or class are referred to as fields . Objects can also have functionality by using functions that belong to a class. Such functions are called methods of the class. This terminology is important because it helps us to differentiate between functions...