Seed Programming

School of Seed Programming Logo

Logic Building with Python

Live: In-Person at ITU Lahore and Online

Rs 9,500/- PKR

About Course

This summer camp is designed to introduce students to the world of programming through Python. Over the course of five weeks, students will learn the fundamentals of programming concepts such as loops, variables, conditionals, and functions. By the end of the camp, students will have the skills to create basic applications, solve programming problems, and understand foundational programming principles.

What Will You Learn?

  • Basics of Python programming.

  • How to use Python to print patterns and shapes.

  • Conditional statements and loops in Python.

  • Debugging techniques in Python.

  • How to write functions in Python.

  • How to build an age calculator project.

  • Working with lists, strings, and dictionaries in Python.

  • Sorting techniques.

  • How to create a Game of Life and Gomoku project.

  • Divide and conquer problem-solving techniques.

  • How to break down a program into smaller modules or functions.

  • Reusability and extendability through functions.
  • Capturing and displaying webcam video using OpenCV.

  • Drawing shapes and text on video frames using OpenCV.

  • Practicing basic image processing techniques.

  • Understanding body landmark detection using MediaPipe.

  • Tracking body movements using pose estimation.

  • Creating a simple curl counter project using MediaPipe.

  • Designing a Gym Assistant system to count exercises like push-ups, chin-ups, and squats.

  • Combining OpenCV and MediaPipe for exercise tracking.

  • Displaying live feedback and exercise counts on the video feed.

Certifications

“Introducing AI with Scratch”

June’2025-July’2025

Recorded Lectures

With lifetime access to our lecture content,
you can revisit and refresh your concepts at your convenience.

Lecture 01: Table Printing
  • Introduction to the print() statement

  • Printing basic multiplication expressions like 2 * 3

  • Printing full equations using operators: + , – , / , // , 

  • Using variables to store numbers (e.g., a = 2)

  • Using variables inside print() to display results

  • Changing variable values to reuse the same code

  • Writing multiple print() statements to show a full table

  • Practiced printing tables of multiple numbers manually using this method

Lecture 02: Data Types and Type Casting
  • Introduction to variables and assigning values. 

  • Using variables in mathematical expressions.

  • Calculating percentages using marks / total * 100.

  • Introduction to data types: int, float, str.

  • Difference between whole numbers (int) and **decimals (float).

  • Using the type() function to check a variable’s data type.

  • Introduction to type casting: converting between data types.

  • Converting float to int and int to str using int(), float(), str().

  • Using variables of different types inside print().

  • Importance of correct data types in mathematical calculations.

Lecture 03: For Loop and Shape Printing
  • Introduction to for loops and their use in repetition.
  • Using range() to define the start, stop, and step values.
  • Printing sequences like counting numbers, even and odd numbers.
  • Creating number patterns using different range() settings.
  • Using loops to print multiples of a number.
  • Introduction to nested for loops for shape printing.
  • Printing shapes like squares and right-angled triangles using *.
  • Understanding print() inside vs. outside the loop.
  • Practice tasks to build logic with custom patterns and sequences.

Lecture 04: Introduction to While Loops
  • Introduction to while loops and their use in conditional repetition.

  • Explained when to use for loops vs. while loops in programs.

  • Demonstrated simple while loop examples with changing conditions.

  • Used user input to control while loop execution.

  • Practiced creating loops that run until a goal is reached.

  • Highlighted infinite loops and how to avoid them.

  • Compared loop control using counters and conditions.

  • Solved small logic tasks using while loops.

  • Reinforced loop understanding with real-life scenarios.

  • Gave a sneak peek of game projects students will build using loops.

Lecture 05: Functions and Lists
  • Introduction to functions and why they are useful in programming.

  • Explained how to define and call functions using def in Python.

  • Demonstrated functions with and without parameters.

  • Showed how to return values from functions.

  • Practiced writing custom functions for simple tasks.

  • Discussed the importance of code reusability using functions.

  • Introduced Python lists and how to store multiple values.

  • Taught how to access list items using indexing.

  • Explained how to add items to a list using .append().

  • Created small projects using functions and lists together.

Lecture 06: Introduction to Pygame
  • Introduced Pygame and its use in building interactive 2D games with Python.

  • Explained how to install Pygame using pip install pygame.

  • Guided students through setting up a basic Pygame window and game loop.

  • Taught how to draw basic shapes like lines and circles using pygame.draw.

  • Practiced placing shapes using coordinates and customizing them with colors.

  • Encouraged experimentation with dynamic shape sizes and positioning.

  • Introduced conditional statements and their role in decision-making.

  • Explained syntax and usage of if, elif, and else in Python.

Lecture 07: Metal Slug Part 01- Player Movement
  • Introduced students to Pygame, a popular Python library for making games.

  • Helped them set up their first game project environment.

  • Created a player character on the screen using basic shapes.

  • Implemented keyboard controls to move the player left and right.

  • Added jumping mechanics for full player movement.

  • Introduced the concept of gravity and how it affects jumping and falling.

  • Controlled the game speed using frame rate (FPS) to ensure smooth gameplay.

  • Used the game loop to continuously update and redraw the game window.

  • Explained how to check for ground collision to stop falling.

Lecture 08: Metal Slug Part 02- Adding Enemies
  • Introduced enemy mechanics for the Metal Slug game project.

  • Implemented ground enemies with walking animations and directional movement.

  • Added air enemies with flying patterns and continuous movement.

  • Taught spawning logic for both ground and air enemies.

  • Controlled enemy spawn timing using frame counters or timers.

  • Handled enemy movement across the screen with speed variables.

  • Used sprite classes for organizing enemy properties and behaviors.

  • Demonstrated collision basics between player and enemies (intro only).

  • Reviewed how to animate enemies using frame-based sprite sheets.

  • Ensured smooth integration of enemies into the existing game loop.

Lecture 09: Metal Slug Part 03- Bullets and Colliders
  • Created player bullets and added them to the game screen.

  • Programmed the bullet shooting mechanism using key events.

  • Managed multiple bullets using bullet lists and loops.

  • Created enemy bullets and added logic for firing from enemies.

  • Implemented timed shooting for enemy bullets.

  • Used rect-based colliders for detecting bullet collisions.

  • Detected collision between player bullets and enemies.

  • Detected collision between enemy bullets and player.

  • Removed bullets after hitting a target or going off-screen.

  • Updated game logic to handle health or effects after collisions.

Lecture 10: Metal Slug Part 04 -Adding Images
  • Introduced dictionaries to store player, enemy, and game data efficiently.

  • Used key-value pairs to organize character properties like health, speed, and image paths.

  • Replaced rectangle-based player with a custom image sprite.

  • Loaded and displayed character and background images using pygame.image.load().

  • Resized images using pygame.transform.scale() to fit the game screen.

  • Stored image file paths in dictionaries for dynamic asset loading.

  • Created dictionaries for multiple enemy types with different stats and images.

  • Structured game levels and objects using nested dictionaries.

  • Organized image assets into folders and updated code to load from correct paths.

  • Improved game visuals by replacing basic shapes with image-based sprites.

Last Lecture: Metal Slug Final Part
  • Introduced the concept of character animation using multiple PNG frames.

  • Explained how to create realistic animations by cycling through image sequences.

  • Used image lists to manage different animation frames for the player character.

  • Programmed frame switching using timers and counters for smooth motion.

  • Replaced static player image with animated walking/running frames.

  • Added animation logic inside the game loop for continuous character movement.

  • Introduced ground enemy images and added them to the game screen.

  • Replaced shape-based enemies with sprite-based animated enemies.

  • Helped students organize character assets in folders for clean file structure.

  • Completed the core game with animated player and enemy visuals.

Registration Queries

FOR ANY REGISTRATION QUERIES FEEL FREE TO REACH OUT TO OUR TEAM​
Open chat
Hello 👋
Can we help you?
Need more information about Logic Building With Python