How To Get Started With Python
How To Get Started With Python
domain-
name.com
ADVERTISEMENTS
. Go to: File > New. Then save the file with .py extension.
For example, hello.py , example.py , etc.
You can give any name to the file. However, the file name
should end with .py
. Run the installer file and follow the steps to install Python
During the install process, check Add Python to
environment variables. This will add Python to
environment variables, and you can run Python from any
part of the computer.
Python IDLE
Now you can create a new file and save it with .py
extension. For example, hello.py
Write Python code in the file and save it. To run the file, go
to Run > Run Module or simply click F5.
print("Hello, world!")
Run Code
Then, run the file. You will get the following output.
Hello, world!
As you can see, this was a pre y easy task. This is the
beauty of Python programming language.
Next Tutorial:
(/python-programming/keywords-
Keywords and
identifier)
Identifier
ADVERTISEMENTS
Related Tutorials
Python Tutorial
Polymorphism in Python
(/python-programming/polymorphism)
Python Tutorial
(/python-programming/main-function)
Python Tutorial
Python Programming
(/python-programming/guide)
Python Tutorial
Python pip
(/python-programming/pip)
www.domain-
name.com