DEV Community


Posted on

Best way to learn Python #1

Python is

  • Readable and easily understandable support modules and encourages code reuse.
  • Cross-platform language – code once, run anywhere (Windows, Linux, Unix, Mac, etc…)
  • Interpreted language – interpreter executes each line of code one by one, making it easy to debug.
  • Open-source, so you can easily practice anytime you want
    Further, Python has an excellent set of standard libraries

  • that allow integration with other languages like Java, C, C++.
    supports object-oriented programming

Learning Python as a beginner can be a little overwhelming. Where do you start? How do you know you're getting the best possible information? What do you do once you've gotten down the basics? If you've recently found yourself asking any of these questions, you've come to the right place. In this post, we've compiled a list of some of the best free Python learning resources for people just starting out with Python (not all of these resources are appropriate for absolute coding beginners, but some are, so if that's you, keep reading!).

The best way to learn Python is to implement whatever you read. Just open your laptop, install Python, and start coding. You can learn as you go!

But, before you do that, here are some tips to make it easy for you –

If you are a non-programmer, Python could be your starting point as it is on the top of the top programming languages of the list and is also the easiest to learn. If you know any other programming languages, learning Python will be a breeze for you. Except for the syntax differences, the basic concepts of OOP remain the same. Also, Python has extensive libraries that support almost everything that you want to do.

  • If you are a non-programmer, have a little extra patience. You will get there for sure. Python is the easiest way to get into programming.
  • Think of your small application and make your learning around it. Preferably build a simple website using Django. For example, browsing through the list of phones and buying one, purchasing your weekly grocery online, managing employee details, and more. - - If you just read and don’t try what you read, you will not be able to grasp or remember the concepts.
  • If you get an error, that means you are going in the right direction. If you make a lot of mistakes, that’s great. Every error should make you excited and eager to find the solution. The best learning is through errors and exceptions.

  • Learn the syntax along the way. Don’t spend too much time on learning the syntax alone. Have a project set up with an IDE like PyCharm, start coding. You will get to know the syntax as you write more code.

  • Start with a simple project and enhance the functionality as you code. Include more complex concepts as you can develop code.
    Okay, without any more theories, let us get started.

Learn Python Basics

You have to start with learning Python Basics. when I say, “Python Basics”…you might be thinking about what exact topics you have to learn.
So, don’t worry… I am going to list the topics which you have to learn in this step. So that, you will not be confused about topics.

In Python Basics, learn the following topics-

  • Installing Python & Python Environment
  • Numbers
  • Strings
  • List
  • Standard Input, Output
  • Basic commands in Python
  • If-then-else statement
  • Loops
  • Functions
  • Variable Scope
  • Dictionary
  • Sets
  • Classes
  • Methods & Attributes
  • Modules & Packages
  • List Comprehension
  • Map, Filter, and Lambda
  • Decorators
  • File Handling

The list is long…but these are very easy to grasp topics. You can learn these topics within a week if you plan your learning accurately.
Now, I have discussed the topics…it’s time to discuss the resources to learn Python Basics.


In this above post I have provided few free courses to learn python

Top comments (0)