How to learn python programming language

How to learn python programming on your own

The ways to learn Python programming on your own are to understand the programming basics, learn the basic syntax of Python, learn Python libraries and frameworks, practice writing code, take part in open source projects, and join the Python community.

1, understand programming basics

Before learning Python programming, you can master programming basics, such as basic computer operations, programming concepts, variables, loops, conditional statements and so on.

2. Learn the basic syntax of Python

Learn the basic syntax of the Python language, including data types, control flow, functions, modules and so on. These are the basics of Python programming.

3. Learn Python libraries and frameworks

Python has a large number of libraries and frameworks to write code more efficiently. For example, libraries for data analysis and visualization such as NumPy, Pandas, Matplotlib, etc., frameworks for web development such as Django, Flask, etc., libraries for game development such as Pygame, PyOpenGL, etc. and so on. You can choose the appropriate libraries and frameworks according to your interests and needs.

4. Practice writing code

After mastering the basic syntax and libraries of Python, you can start practicing writing code. You can start with simple programs and gradually increase the complexity, such as writing a calculator, crawling websites for information, making games, and so on.

5. Participate in open source projects

6. Join the Python community

Python has an active community where you can learn the latest Python news, solve problems, and meet other Python programmers. You can join communities like Python Forums, StackOverflow, GitHub, etc.

How can I learn python

Python is actually very good for beginners to get started. Compared to many other mainstream programming languages, it is much more readable and therefore relatively easy to learn. It comes with a variety of modules, plus a wealth of third-party modules, eliminating the need for a lot of “repetitive wheel-building” work, and allowing you to write things faster. Configuring a development environment isn’t too complicated either, as python is built into both mac and linux, and I know of a number of schools that have started using python in their programming courses.

Three tips for learning python:

1. Find a tutorial that is easy to understand and has good examples, and read it from cover to cover. Don’t read many books, focus on one. Hand-type all the routines in it and figure out why. You can look at is “concise python tutorial”, but this book is not very suitable for zero basic beginners. Zero-based recommends Learning Programming with Kids or Python Programming: from Beginner to Practical.

2, go find a real project to practice, through the real project to achieve the effect of training. The effect in this condition is much better than you usually learn a new language. So it’s best to have a real project to do. You can find some students to make a website together or something like that. Note that the real project does not have to be a commercial project, write a blog site that you will use is also a real project, the key is to have the core functions complete.

3, find a person who already knows python as a teacher. Ask him a little bit of learning planning advice (on Zhihu is also a way), and then in the encounter jammed place to find his guidance. This will be twice the effort with half the effort. But learn to search and learn how to ask better questions. No one wants to do your homework for you or answer “one search” questions.

Besides that, you need to have confidence in yourself and be persistent. In addition to learning a programming language, you need to learn other computer knowledge and English. Not only do you need to learn to write code, but you also need to learn to read code, and more importantly, you need to be able to debug code. Read the error messages of your own program. Then get some programs on github and read other people’s code.

Outline of Python Learning Route

1, Linux Basics

2, Python Basics and Advanced

3, Database SQL

4, Front-end and Mobile Development

5, Web Full Stack

6, Crawling and Search

7, Big Data Analytics

8, machine learning

9, deep learning: TensorFlow, Caffe, CNN/RNN hands-on, face recognition, text mining, etc.

Related video recommendations “Python3 Video Tutorials

Python can develop 6 major programs, how to learn it?

Python as a whole can be used in any field of software development. Here’s a look at what areas of development Python can be applied to.

Console-based applications

Audio or video-based applications

3DCAD applications

.Web applications

Enterprise applications

Image applications

How should I learn Python?

1. Getting Started

Any programming language consists of two parts: hard knowledge and soft knowledge, and the main task in the getting started phase is to master the hard knowledge.

(1) Hard knowledge

“Hard knowledge” refers to the syntax of the programming language, algorithms and data structures, programming paradigms, such as: variables and types, loops, branches, functions, classes. This part of the knowledge is also universal, it seems to master a syntax, in fact, is to establish a kind of thinking. For example, if a Java programmer were to learn Python, he could quickly map the object-oriented knowledge he learned in Java to Python, and therefore quickly master the object-oriented features of Python.

If you are new to programming, a solid syntax book is very important. It may seem very dry and boring, but it is essential for building a solid programming mindset.

Here’s a list of some instructional materials for beginners to get started

? “Learning Python the Dumb Way”:

L, text coding, JSON nothing, can you do this part well? And the basics of what you’re starting out with are just as important; if you have to look up documentation on how to even write loop recursion, and you don’t even know how to implement BFS, that’s as inefficient as a craftsman making a stone bench having to think about how to use the hammer every time he starts it.

At this stage, it is inevitable that you have to touch a lot of libraries and read a lot of books.

(1) Class libraries

“AwesomePython Project”

Here’s a list of the tool-based libraries that are already available in the Python community for you to use when you’re trying to solve a variety of real-world problems, as shown in the following figure:

You can look for the ones that you need according to your actual needs.

As for how to use the libraries, the skill you must acquire is reading the documentation. Most of the documentation in the open source community is in English, so if you don’t speak English well, you’ll need to brush up.

(2) Books

Here I only list some books that I think are helpful, see the Douban book reviews:

Science and data analysis:

? “Programming Collective Intelligence”

? “The Beauty of Math”

? “Statistical Learning Methods”

? “PatternRecognitionAndMachineLearning”

? “Data Science in Action”

? “Introduction to Information Retrieval”

Crawlers:

? “The Definitive Guide to HTTP”

Web Sites:

? “HTML&CSS Designing and Building Websites”

The columns are no longer necessary to continue here.

3. In-depth stage

At this stage, you know almost everything about Python, so you must know that Python is implemented in C language.

But how are the “dynamic features” of Python objects implemented in C, a relatively low-level language that doesn’t even have automatic memory management? It’s time to look beyond the surface, to bravely unpack Python’s black box, to dive deeper into the language, to look at its history, to read its source code, and to truly understand its design philosophy.

Here’s a book we recommend: “Python Source Code Analysis”, which gives a detailed explanation of the core parts of Python’s source code, but you need to have a good understanding of the C memory model and pointers to read this book.

Also, Python itself is a dynamic language with a mix of paradigms, which means it’s less pure than C’s procedural, Haskell’s and others’ functional, or Java’s class-based object orientation. In other words, the “Taoism” of programming languages can only be realized to a limited extent in Python. When learning a programming paradigm, start with a language that is more purely oriented to that paradigm to gain a deeper understanding, and to understand the roots of the Python language.

Here is a recommended open course “Programming Paradigms” (Stanford University Open Course), where the programming paradigm instructor gives a high level overview of the core ideas of each programming paradigm, starting from the languages that represent each paradigm.

It is worth mentioning that this course has a very in-depth explanation of C, such as C paradigms and memory management. This knowledge, too, helps greatly in reading Python source code.

Many of Python’s best practices are hidden in frameworks and libraries that are well known, such as Django, Tornado, and so on. It’s not a bad idea to pan for gold in their source code.

4. Final Words

Everyone’s path to learning programming is different, but it’s mostly the same. The important thing is to practice more, to practice more, to release or participate in open source projects, and to actively interact with other developers.