⚙️
Code Beta
Master Coding with gamified challenges
ALREADY A MEMBER? LOG IN
←
Choose Experience
🌱
Beginner
Starting from scratch
🔨
Intermediate
Know basic syntax
🦾
Pro
Advanced & challenges
←
Choose Language
🐍
Python
Primary learning path
Available
☕
Java
Enterprise programming
Coming Soon
⚙️
C++
System & game development
Coming Soon
←
Python Path
Progression Logic Enabled
→
Interpreter
Comments → 🗑️
📝 What are Comments?
Code is for
computers, but Comments are for humans.
- They start with a hash symbol (#).
- The computer ignores them completely.
- Use them to leave notes for yourself!
print("Hi")
# This is a comment
🖨️ The Print Function
To see results, we
must "print" them to the screen using print().
⚠️ Syntax Rule:
• Text: Needs quotes -> "Hello"
• Numbers: No quotes -> 50
print("Code Beta")
print(5 + 3)
🧮 Doing Math
Python acts like a
powerful calculator. However, the symbols for multiply and divide are unique.
*
MultiplyUse asterisk, not x
/
DivideUse forward slash
print(10 + 5) # Sum
print(10 * 2) # Product
⚔️ Mini Task: Math Battle
Calculate the product of 5 and 5.
←
MODULE 1 FINAL
Fix the Program 🔧
🚫 Syntax Error Detected
SyntaxError: Missing parentheses in call to 'print'.
Hint: In Python 3,
print is a function. It acts like a mouth that needs lips () to speak!
Select the correct code to fix the error:
BROKEN
print "Hello World"
print "Hello World"
print("Hello World")
Print("Hello World")
←
MODULE 2
Variables 📦
📦
The Box Metaphor
Think of a variable as a storage
box.
Label: score
Content: 10
We assign values using the = sign.
score = 10
name = "Player"
print(score)
🎮 Mini-Game: Naming Police
Which variable name is valid in
Python?
Making Decisions 🔀
if raining:
Take umbrella ☔
else:
Wear sunglasses 😎
⚠️ The indentation
(space) tells Python what belongs to the 'if'.
Mini Task: Security Check
age = ??
if age >= 18:
print("Access
Granted")
else:
print("Access
Denied")
🔒
Select an age to test:
←
🤖 Ask AI
How the Computer Thinks 🧠
The game uses
multiple conditions to check who wins. In Python, we use `elif` (else if) to check extra
options.
if you == "Snake" and cpu == "Water":
print("You Win")
elif you == "Water"
and cpu == "Gun":
print("You Win")
Task: Beat the CPU
logic 3 times!
RESULT LOG:
Choose your weapon...