Book Image

Learning Python [Video]

By : Mohit Raj, Bhaskar N. Das
4 (1)
Book Image

Learning Python [Video]

4 (1)
By: Mohit Raj, Bhaskar N. Das

Overview of this book

Python is a great language to get started in the world of programming and application development. This course will help you to take your skills to the next level having a good knowledge of the fundamentals of Python. We begin with the absolute foundation, covering the basic syntax, type variables, and operators. Then we'll move on to concepts such as statements, arrays, operators, string processing, and I/O handling. You’ll learn how to operate tuples, and understand the functions and methods of lists. We’ll help you develop a deep understanding of list and tuples and you’ll learn about the Python dictionary. As you progress through the course, you’ll learn about function parameters and how to use control statements with the loop. Further on, you’ll see how to create modules and packages, storing of data as well as handling errors. Later, we’ll dive into advanced level concepts such as Python collections and you’ll see how to use class, methods, and objects in Python. By the end of this course, you’ll have taken your skills to the next level, with a good knowledge of the fundamentals of Python. This course uses Python 2.7.13, while not the latest version available, it provides relevant and informative content for legacy users of Python.
Table of Contents (11 chapters)
Chapter 11
Class and Objects
Content Locked
Section 6
The Class Method and Static Method
How can we pass the class as an argument so that we can change the class variable in the method? To do that, we use the class method. The static method doesn't take an instance or class as the first argument. - Take the class as first argument - Use decorator at the top of the method - Use decorator (@staticmethod) at the top of the method