Get started with Python

Tram Ho

Opening

Welcome to the third post in the “Walking around with Python” part of the “Explore Python Citadel” series.

In this part, we will walk around the outer parts together before attacking the document in the next sections.

I will go and answer the following questions in “Ignoring Python”:

The content in this series article is from “Python headquarters” python.org , I write in my language with other documents that I find relevant and useful for the topic of the article.

The following article will answer the question “I’m so excited about Python ♥ Where should I start?” under the “Getting Started” section

Body post

So excited about Python ♥ Where should I start?

Nasty, stupid and always, don’t wait any more, learn Python now, pay thousand and one dollar are waiting ahihi

In this section “Getting started with Python”, there are the following main contents:

– What is Python?

– How to pick up Python and try it out

– Play it for a try, now for real learning

– Search for ready-made applications

– Frequently asked questions

Let’s go, everyone!

What is Python?

Python is an object-oriented programming language, comparable to Perl , Ruby , Scheme or Java

Notable features:

♥ Elegant syntax, easy to read, easy to write

♥ Write a one-play program that you can run immediately

♥ Standard library that supports common tasks like connecting server, searching with regular expressions, reading and editing files

♥ Easily test short codes with Python interactive mode (PI)

♥ It is possible to add more modules written in other languages ​​like C , C++ . Can embed in other applications to create the user interface

♥ Runs on multiple platforms: Mac OS X , Linux, Windows , Unix . Free to download, free to use

Notable features about the language:

♥ Multiple data types: number (floating point, complex, and unlimited-length long integers), string (both ASCII and Unicode), lists (list), and dictionaries . Dynamic and powerful data types, mixing different data types will immediately report errors (like adding string with number)

♥ Support for object oriented programming with classes and many inheritances (multi inheritances).

♥ Code can be grouped into modules, packages. Memory is managed automatically. There is support for clean error handling

♥ Python contains advanced features of a programming language such as list comprehensions and generators

How to collect Python for trial play

In order to pick up Python and try it out, I have to install her interpreter – Python Interpreter, which is a program that can read Python code and run it. In addition, she comes with a lot of documents that can help me understand Python better.

Normally, Mac and Linux will have Python built in, but it’s outdated (Python 2.x), so I need to update to a new one (Python 3.x) (please check at page This downloads ).

After installing python version 3, I python3 command line and typed python or python3 to enter the trial mode with Python Interpreter already.

Here is just playing to see the results immediately, but if you want to save the code and edit, you need an IDE or Code Editor to open that file, you can start with Thony (a program built in Python Interpreter and IDE bundles), quite simple and lightweight.

(Bonus) If you are looking for an IDEs or Text Editors to work with Python, then python.org also has two huge lists for your reference:

Python IDEs introduce the name, platform, last update and some key information about the IDE

Python Editors introduce name, background, language, license, and some key information of editor

I came across IDEs with Code Editors, if you are unsure, read more

IDEs are programming environments that provide features like coding, compiling, debugging, executing, autocomplete, and libraries in one place to make tasks simple and easy. than

Common IDEs include: PyCharm, Spyder, PyDev, Idle, Wing, Eric Python, Rodeo, Thonny

Meanwhile, Code editors is a platform for editing and editing source code, popular with Python include: Sublime text, Atom, Vim, Visual Studio Code

You can take a look at the python IDE, code editors in this article , introduce the main features, advantages and disadvantages for me to choose the appropriate one.

Play it for a try, now is learning for real

Having chosen a place to code, I just started to code. Wrong, I have to read the tutorial first, then code to see how it runs. Regarding the guidance, there are 2 main directions:

In each tutorial, there are sections like introductory books for each audience, tutorials and websites, interactive courses, science research materials, videos and tools.

I see that on the Non Programmer side, the interactive courses are ranked ahead of other resources. I want people who start interacting to get acquainted with Python first.

On the Programmer side, there are two link review of the best courses for Python to grasp the fastest, with “Google Python’s class” (free) and the “Complete Python Bootcamp: Go from zero to hero in Python 3” course. “ From Udemy (fee charged).

Besides, when you need to search for more information about Python, the online documentation is the place you need to visit. In addition, there is a Python tutorial to learn the basics and help me get started with Python, I will learn this tutorial together in the next blog posts.

After learning and writing the basics, it’s time to learn more about Syntax Python with the series “The Python Language Reference” and the Python standard libraries with “The Python Standard Library” .

If you want to know recipes and patterns that are common in Python, visit “ActiveState Python Cookbook” to see it.

Search for available applications

If you want to look for modules, packages or applications written in Python for reference or use in your application, the first place to look is PyPI – Python packages will look for it. to get the best source code or simply ask Google for keywords such as “python package”, “python example”, “python recipes”, … is okay.

If you still can’t find what you need, don’t hesitate to ask a question on Stackoverflow or anyone you know they know more Python than you do ^^.

Frequently asked questions

If you have any questions about Python, check out the “Frequently Asked Questions” section to see if people answered.

Bonus to you top Python questions on StackOverflow hey.

End

This is the last post of the “Ignoring Python” section.

We have gone through this crowd, we must have understood the importance of Python and are eager for the next journey.

Next, I’m going to gnaw through the hardest part “Documentation”.

Actually, I’m also fed up with bad documentation, so I’m not foolish enough to go into the document so it is so wordy. There are many other cuter options here, such as “Audio / Visual Talks” and “Beginner Guide” . Part ni called “Make friends with Python” for it to be friendly ha.

I’m practicing blogging, everyone visit my house to play. Follow / like this fanpage to update the latest posts. Some good sources that I can collect are also saved here

BeautyOnCode

Share the news now

Source : Viblo