How to Write Your First Python Program | print(), Syntax & Indentation Explained

Veröffentlicht am: 08 Dezember 2025
auf dem Kanal: CYFI
34
1

In the previous lesson, we learned what Python is and how it compares to block coding.

In this lesson, we take our first real step into Python programming by learning how to write and run your very first Python program.

You will learn how the print() function works, what syntax is, how Python rules must be followed, and why indentation is extremely important in Python.

This lesson builds the foundation for writing correct and error-free Python code.

🎓 What You’ll Learn in This Video
✅ 1. Writing Your First Python Program
• Using the built-in print() function
• How to display words, sentences, and messages
• Using double quotes vs single quotes
• Running Python code in an online interpreter

✅ 2. Understanding Syntax & Common Errors
• What “syntax” means in programming
• How Python rules are similar to grammar rules
• Syntax errors: missing quotes, missing brackets, wrong placement
• How to read and fix basic error messages

✅ 3. Printing Numbers & Performing Math
• How to print numbers correctly
• When NOT to use quotes
• Doing basic math: addition, subtraction, multiplication, division
• Why "7 * 2" prints differently than 7 * 2

🌟 Bonus Concept: Indentation
• What indentation means in Python
• Why indentation replaces “block” structure
• Writing code inside loops & functions
• What causes indentation errors
• How to fix “Unexpected indent”

🌟 Why Watch This Video?
This video is perfect for:
✔ Students transitioning from block coding to Python
✔ Beginners writing their very first Python program
✔ Anyone learning coding fundamentals step-by-step
✔ Anyone who struggles with syntax errors or indentation

By the end of this lesson, you’ll understand how print() works, how to run Python programs, and how to avoid syntax or indentation errors in your code.

🔗 Course: Transitioning from Block Programming to Python
Learn real programming step-by-step through simple explanations, visual comparisons to block coding, and hands-on Python practice.

🕒 Timestamps
00:01 – Introduction
00:06 – Recap of last video (What is Python?)
00:16 – Writing your first Python program
00:28 – print() function introduction
00:37 – What is syntax?
00:55 – Understanding syntax rules
01:15 – print() syntax explanation
01:31 – Using quotes for text
02:06 – Running the program & output
02:23 – Printing sentences and characters
02:57 – Syntax errors you may encounter
03:12 – Missing quotes example
03:45 – Missing parentheses example
03:59 – Printing numbers without quotes
04:10 – Printing mathematical calculations
04:38 – Printing numbers WITH quotes
04:57 – Difference between “7 * 2” and 7 * 2
05:31 – Introduction to indentation
05:41 – Indentation vs block coding
06:18 – Incorrect indentation example
06:46 – Fixing indentation error
07:24 – Summary: print, syntax, errors, indentation
07:46 – End of lesson


#PythonForBeginners #LearnPython #FirstPythonProgram #PythonSyntax #CodingForKids #ProgrammingBasics #STEMLearning #BeginnerPython #PythonIndentation #PrintFunction


Auf dieser Seite können Sie das Online-Video How to Write Your First Python Program | print(), Syntax & Indentation Explained mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CYFI 08 Dezember 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 34 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!