About this tool
This page is designed for beginners taking their first steps in programming. It explains how to write and run your first code using a simple text file without opening any complex projects. The main goal is to show users how basic commands operate on a computer.
People need these basics when starting to write code for the first time. The guide covers installing the software, opening the terminal, running the script, and getting results. Following basic rules helps avoid mistakes and achieve success right away.
How to use it
- Install Python on the computer and ensure the path is added.
- Create a text file named salam.py and write print("Hello") inside.
- Open the terminal and navigate to the folder where the file sits.
- Run the program by typing python salam.py.
Common uses
- Writing a single line of code to print a greeting on the screen.
- Printing a name stored in a variable.
- Running a script file through the terminal.
- Reading the line number at the bottom when an error appears.
Frequently asked questions
What should the file extension be?
The file must end in .py. A .txt file will not run, so ensure the proper extension is used.
What if Python is not found?
If python is not found, the install did not add the path. Open the installer again and choose to add the path.
Why does the program write nothing?
If the program writes nothing, there is no print command included in the file.