Quest 1 β’ Lesson 1
π Your First Python Program
Python is one of the easiest programming languages to learn. Let's write your very first line of code.
"A program is a set of instructions that tells the computer what to do. We'll start by saying hello!"
hello.py
print("Hello, World!")
π§ Understanding the Code
print()β A builtβin function that outputs text to the screen."Hello, World!"β A string (text) that will be printed.- Python executes code line by line, from top to bottom.
β¨ Challenge: Say Your Name
Modify the code to print your own name instead of "Hello, World!".
print("Your Name Here")
π¦ Storing Data: Variables
We can store values in variables and then print them:
name = "Khurram"
print(name)
print(name)
This will output: Khurram
β€οΈ Support Free Education
This course is 100% free. If it helps you, consider buying me a coffee.
β Buy Me a Coffeeβ‘οΈ Ready for more?
Next lesson: Variables & Data Types β store and work with different kinds of data.
Continue to Lesson 1.2 β(Coming soon β check back or buy Pro Pack for instant access)