How to get started with Python without basic knowledge

Source: Internet
Author: User

How to get started with Python without basic knowledge
Zero programming basics how to learn Python

If you want to get started with programming, I recommend that you learn Python. Although C language is basically used as the entry-level teaching in China, at MIT and other foreign universities, Python is used as the entry-level programming teaching.

So how to learn Python?

Step 1: first sharpen the knife

As the saying goes, I believe it. So how to sharpen the knife? First, Baidu has a rough understanding of Python, and then downloads a Python on the official website. You 'd better download Python first, and then go to Python 3, this is in line with the development rules of Python. Don't ask me why. This is my personal experience. Of course, you may not listen. This is not a big problem, but I personally think it will be nice to you. If you encounter any problems during the installation process, please search Baidu by yourself. I am sure you will find the answer. I believe you. The above is the installation in the Windows operating system.

Note: If you are a local tyrant and use an apple copy, congratulations! Apple has built Python and does not need to be installed any more. If you are using a Linux system, congratulations, python is also built in Linux.

Step 2: first write a Hello World and try

Find the installation directory of python.exe and check the file of python.exe. Double-click it. Is there a black window? Enter print ("hello world! "), And then press Enter. If it succeeds, you will see the window shown in.

Step 3: Learn How Python runs

Don't be afraid. I can tell you the principle in a simple language. You don't have to go to the northeast and West. We can use python.exe as the interpreter. When we input print ("hello world"), the interpreter will explain our input to the operating system, the operating system then understands that it is so simple to output hello world to the screen.

Step 4: Learn How to Run compiled script files

Next to the previous step, please close the black window and open it again. You will find that you have not entered anything before. What should I do? What should I do if I want to save the previous input? Don't worry. I will help you.

Now, use a notepad to create a plain text file and save it as hello. py. Put this hello. py in the c root directory.

Then open the cmd window (do not know what is cmd? Enter python c: \ hello. py in the window. If it goes well, you will see something similar.

Step 5: Start With the Getting Started tutorial and learn Python step by step

We recommend that you start with "Python concise tutorial" and do not know where to download it? Baidu, you will know

Step 6: Ask your experts to teach you advanced Python skills

Congratulations, you have entered the Python portal. If you want to use Python skills for employment, it is not enough to get started. Ask a famous teacher to teach you advanced Python skills.

Good luck!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.