Get started with Python in 30 minutes! Development environment construction & learn basic grammar

How did you get started with Python?

Making a ChatBot with Typescript and GAS, While trying to challenge competitive programming (AtCoder) with C #, "** Isn't it really easy to use Python ?? **" There were so many scenes that I felt that, so I took the momentum to get started (σ ・ ω ・) σ

Thing you want to do

In this article, using ** VS Code on ** macOS ** We will build a development environment ** for writing Python.

However, for the following tasks required to get started with Python, ** Strong people in the world ** have already been verbalized.

✔︎ * How to install Python * ✔︎ * Automatic shaping / coding standard setting * ✔︎ * Basic knowledge of PyPy * ✔︎ * Basic grammar of Python3 * ✔︎ * Cheat sheet for competition professionals *

So, in this article, I found value in the point that "** As of February 2020, if you read this article in this order and set it properly, you can definitely decide to get started with Python! **", and get started with Python. We have briefly summarized the minimum necessary contents so that it can function as a hub for people. (・ Ω ・.)

Useful documentation for getting started with Python

Below, we will introduce articles that were helpful by genre.

First of all, the official document

Official documents are often formal and difficult to read, but think that the Japanese version is better and read it each time. The following ** glossary **, ** standard library **, etc. are recommended because their specifications are easy to understand.

[Official] Python Tutorial [Official] Python Glossary [Official] Python Standard Library

Python installation

There are several articles with and without pyenv for installation, but considering that Python may not be compatible between versions, it is more convenient for version control to use pyenv. Looks good. Building a Python environment on Mac using pyenv

Automatic formatting, adjustment of coding standards

For Python, which has relatively many restrictions on notation, not setting automatic formatting seems to be a life-and-death problem. Especially for beginners, it seems that it will take time due to unnecessary notation errors, so I think that it should be introduced first and foremost. Introduce flake8 instead of pylint in VS Code Python development environment and set automatic formatting

It will be nice to refer to the contents of the following article as a supplement to the above article. Comfortably follow VS Code coding conventions

Basic Python grammar

If you have spoken in other languages, you should be able to handle Python reasonably well by completing the following articles. Python3 basic grammar

What is PyPy

When using PyPy, it seems that processing is often much faster than ordinary Python, depending on the situation. Summary of basic knowledge of PyPy Part 1

Competitive Pro Related Tips

After learning the basic grammar, let's immediately implement the algorithm with AtCoder and improve the Python experience value. If you refer to the three articles below, even beginners will be able to deal with the ABC D problem!

Cheat sheet for competitive programming used in Python I tried to summarize the code that I often write when competing in Python Until AtCoder is blue in Python-Be careful when competing in Python-

Summary

For the time being, if you can collect information about Python and build a development environment around here, I think it will be easy to start practicing as a Python user from here. Last but not least, this article is for Python experts and beginners! If you have any reference information, please feel free to comment! | ε :)

Follow me. (・ Ω ・.) @NadjaHarold

Recommended Posts

Get started with Python in 30 minutes! Development environment construction & learn basic grammar
Get started with Python! ~ ① Environment construction ~
Get started with Python! ~ ② Grammar ~
Get started with Python in Blender
Getting Started with python3 # 1 Learn Basic Knowledge
Get Started with TopCoder in Python (2020 Edition)
Let's get along with Python # 0 (Environment construction)
Python development environment construction
python2.7 development environment construction
Development environment in Python
Get a quick Python development environment with Poetry
Super Primer to python-Getting started with python3.5 in 3 minutes
QGIS3 Python plugin development environment construction with VSCode (macOS)
[For beginners] Learn basic Python grammar for free in 5 hours!
[MEMO] [Development environment construction] Python
Let's get started with Python ~ Building an environment on Windows 10 ~
Video cannot be loaded with Spyder in Python development environment
Get a clean Python development environment with pyenv + pipx + Poetry
How to get into the python development environment with Vagrant
Link to get started with python
Scraping with Selenium in Python (Basic)
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Emacs Python development environment construction memo
pytorch @ python3.8 environment construction with pipenv
Prepare Python development environment with Atom
Get additional data in LDAP with python
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Learn Python! Comparison with Java (basic function)
Get Cloud Logging available in Python in 10 minutes
How Python beginners get started with Python with Progete
Windows + gVim + Poetry python development environment construction
Introduced sip-4.14 in python3.2.2 environment with MacOS 10.7.4
[Blender x Python] Let's get started with Blender Python !!
[Cloud102] # 1 Let's get started with Python (Part 2 Jupyter Notebook Construction AWS Edition)
Learning history for participating in team application development in Python ~ Supplement of basic items and construction of jupyterLab environment ~
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
Collecting information from Twitter with Python (Environment construction)
Python hand play (let's get started with AtCoder?)
[Python] Get the files in a folder with Python
Python environment construction
Build Python development environment with Visual Studio Code
Environment construction (python)
Create a virtual environment with conda in Python
[Cloud102] # 1 Let's get started with Python (Part 3 Jupyter Notebook Construction GCP Cloud Shell Edition)
Build a Django environment with Vagrant in 5 minutes
For those who want to learn Excel VBA and get started with Python
Poetry-virtualenv environment construction with python of centos-sclo-rh ~ Notes
python environment construction
Work in a virtual environment with Python virtualenv.
Python local development environment construction template [Flask / Django / Jupyter with Docker + VS Code]
Python3 basic grammar
Get started with Python on macOS Big Sur
Python environment construction
Use Python in Anaconda environment with VS Code
Getting started with AWS IoT easily in Python
First python ① Environment construction with pythonbrew & Hello World !!
From 0 to Django development environment construction to basic operation
Send HTTP with Basic authentication header in Python