04_First_Steps_in_Coding
Step 4: Write Your First File
Create hello.py:
print("Hello, World!")
Run it:
python hello.py
--- ### ** Page 4: First Steps in Coding** ```markdown # First Steps in Coding ## Basic Concepts 1. **Variables** Store information. ```python name = "Senithu" age = 18
-
Data Types
-
Numbers →
10 -
Text →
"Hello" -
True/False →
True,False
-
-
Input & Output
user = input("Enter your name: ") print("Welcome", user)
Control Flow
-
If Statements
if age >= 18: print("You are an adult") else: print("You are a minor") -
Loops
for i in range(5): print(i)