# Your First Python Program

Write a Python program in a .py file that prints lines with print(), run it with python and the file's name, leave notes in it with comments, and read a traceback from its last line up to find what went wrong and on which line.

![Cheat sheet: Your First Python Program](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/043035dbe05047779df319afe1e046f1.webp)

- Category: Python
- Level: Novice
- Tags: Comment (python), NameError, print(), python, String (python), SyntaxError, Traceback
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-first-program-cheat-sheet
