0% found this document useful (0 votes)
16 views5 pages

Coding Class Curriculum

The document outlines a 12-week Python programming course designed for teens, covering topics from basic coding to advanced concepts like object-oriented programming. Each week includes specific focuses, activities, and projects, culminating in a final project presentation. The course utilizes tools like Replit and GitHub for collaboration and aims to provide a Certificate of Completion upon successful completion.

Uploaded by

Olufemi Yusuf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views5 pages

Coding Class Curriculum

The document outlines a 12-week Python programming course designed for teens, covering topics from basic coding to advanced concepts like object-oriented programming. Each week includes specific focuses, activities, and projects, culminating in a final project presentation. The course utilizes tools like Replit and GitHub for collaboration and aims to provide a Certificate of Completion upon successful completion.

Uploaded by

Olufemi Yusuf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Duration: 12 weeks

Delivery: Classroom, after-school club, or online (2–3 hours/week)


Tools: Replit or VS Code, Google Classroom or GitHub for collaboration
Outcome: A creative final project and Certificate of Completion

🔰 Week 1–2: Getting Started with Python – “Let’s Talk Code”

Focus: What programming is, writing your first lines of code


Activities:

 Installing Python or using Replit

 "Hello, World!" and emoji printing

 Variables, data types, and basic math

 Teen-themed Mad Libs game Project: Create your own bio generator
("Meet the Coder")

🧠 Week 3–4: Making Decisions and Repeating Things

Focus: Control flow using if/else and loops


Activities:

 If statements for quizzes or mood checkers

 for loops to animate text

 while loops in guessing games

 Rock-paper-scissors logic
Project: Build a “Truth or Dare” or quiz app

📚 Week 5–6: Data Collections – “List it Out”

Focus: Storing and using multiple items


Activities:

 Lists (favourite songs, movies), dictionaries (user profiles)

 List sorting/shuffling (think playlists!)

 Nested data (inventory in a game) Project: Digital locker or movie


recommendation tool
🔧 Week 7–8: Functions & Game Mechanics

Focus: Reusing code and creating mini games


Activities:

 Writing custom functions

 Using Python’s random, time, and math

 Game logic: scorekeeping, lives, win/loss Project: A mini game like a


text-based RPG or dice duel game

📁 Week 9–10: Files, Errors & Intro to OOP

Focus: Saving data and using classes


Activities:

 Writing to files (e.g., journaling or score history)

 Basic error handling (try/except)

 Create your own class: "Pet", "Avatar", or "Gadget" Project: Build a


virtual pet or simple banking simulator

🎨 Week 11: Final Project Planning – “Code What You Love”

Focus: Dream it, design it, build it


Ideas:

 Chatbot for a fandom

 Goal tracker for school/sports

 Random meme generator

 Simple text-based adventure game

🏁 Week 12: Final Project Build & Showcase

Focus: Complete and present your final project


Deliverables:

 Polished code
 README file

 Demo (recorded or live)

 Peer feedback & celebration

💬 Teaching Style

 Short lectures, lots of hands-on coding

 Peer programming and review

 Kahoot! quizzes for fun assessments

 Coding journals for reflection

🌐 Platforms & Tools

 Replit (no install needed)

 [Link] for visual debugging

 Turtle Graphics (to make drawings with code)

 GitHub Classroom (for team projects if advanced)

🎓 Bonus Ideas (for engagement)

 Code Battles: solve mini-challenges in 5–10 mins

 Hack Day: work in groups to solve a themed problem

 Code & Chill: optional weekend live sessions

print("Welcome to the Simple Calculator! ")

num1 = float(input("Enter the first number: "))

print("Choose the operation:")

print("1. Addition (+)")

print("2. Subtraction (-)")


print("3. Multiplication (*)")

print("4. Division (/)")

operation = input("Enter 1, 2, 3, or 4: ")

num2 = float(input("Enter the second number: "))

if operation == "1":

result = num1 + num2

print("Result:", result)

elif operation == "2":

result = num1 - num2

print("Result:", result)

elif operation == "3":

result = num1 * num2

print("Result:", result)

elif operation == "4":

if num2 != 0:

result = num1 / num2

print("Result:", result)

else:

print(" Error: You cannot divide by zero!")

else:

print("Invalid operation. Please choose 1, 2, 3, or 4.")

# BODMAS Calculator

print("Welcome to the BODMAS Calculator 🧮")

print("You can use: +, -, *, /, (), ** (power)")

print("Example: (2 + 3) * 4 or 5 ** 2")

def calculator():

try:
expression = input("Enter your mathematical expression: ")

# Sanitize input (allow only digits, operators, and parentheses)

allowed_chars = "0123456789+-*/(). **"

if any(char not in allowed_chars for char in [Link]("


", "")):

print("Invalid characters detected! Please use numbers and


valid operators only.")

return

result = eval(expression)

print("Result:", result)

except ZeroDivisionError:

print("Error: Division by zero is not allowed.")

except Exception as e:

print("Invalid input! Please enter a proper mathematical


expression.")

# Run the calculator

calculator()

You might also like