Site icon Kaizen.Personal computer work.

Install and first program.(Python)

Japanese version.

This content is intended for use on Windows.

Steps

To use Python, you first need to download and install it. Python is open source, so anyone can download and use it for free.

Search for Python in the 'Microsoft Store' and install it.

Once the installation is complete, Python will be ready to use.

Once the installation is complete, open a command prompt. For the command prompt, right-click on the Windows menu, select 'Run', enter 'cmd' as the name and click the OK button.

To start using Python, open the command prompt and type "python" followed by the Enter key.

If the Python version information is displayed, as shown in the screenshot below, you have succeeded. Once the version information is displayed, close this command prompto.

Create a directory called 'python' directly under the C drive. This is where you will store the Python program.

After creating the directory, create an empty text file called 'hello.py' in it. Then open 'hello.py' in Notepad or similar, type print('hello') and save it. This is a Python program to display 'hello' on the screen.

After saving the file, open a command prompt and run the following command.

python c:\python\hello.py

If you see hello after the command as in the screenshot below, you have succeeded.

The simplest way to run a Python program is to type 'python program file path' at the command prompt, as shown here.

For those who want to learn Python efficiently.

The information on this site is now available in an easy-to-read e-book format for $3.00.

Or Kindle Unlimited (unlimited reading).

This textbook is used for new employees with no programming experience.

This book focuses on basic programming topics.

We do not cover topics such as object-oriented programming, statistical analysis using Python-specific libraries, machine learning, as these topics are difficult to understand from the standpoint of initial programming learning.

This book is especially recommended for those who have no experience with programming.

Links

Python Articles

Python
Exit mobile version