Writing Your First Script

Estimated reading: 1 minute 127 views

Create a new file with a .py extension (e.g., hello.py) using a text editor. Write the following code and save the file

Python

# hello.py
print("Hello, Python!")

Bash


python hello.py
Share this Doc

Writing Your First Script

Or copy link