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 (σ ・ ω ・) σ
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. (・ Ω ・.)
Below, we will introduce articles that were helpful by genre.
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
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
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
If you have spoken in other languages, you should be able to handle Python reasonably well by completing the following articles. Python3 basic grammar
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
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-
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