Exercise Index# Exercises# Python Fundamentals# Python Basics# Printing Question 1 Code challenge: Hello World! Code challenge: Practice! Variables Question 1 Question 2 Question 3 Python as a calculator Question 1 Question 2 Question 3 Code challenge: Calculations Naming Variables Question 1 Question 2 Don’t Mix and Match Variables Types Question 1 Question 2 Question 3 Type Conversions Question 1 Question 2 Question 3 Code challenge: Nesting Input Code challenge: Echo Code challenge: Double that Number! String Formatting Question 1 Question 2 Question 3 Code challenge: Nice to Meet You! Code challenge: Round to 2 Decimal Places Code challenge: Seconds in Day Error Messages Question 1 Question 2 Question 3 Question 4 Code challenge: Add Two Numbers Test Your Understanding Question 1 Question 2 Question 3 Question 4 Additional Challenges Code challenge: Python's Awesome! Code challenge: 30% off! Code challenge: Favourite Foods Conditionals# Comparisons Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 And/Or Question 1 Question 2 Question 3 Question 4 If Statements Question 1 Question 2 Code challenge: Big Number Code challenge: 3 is Lucky! Code challenge: Favourite Colour Code challenge: Temperature If-Else Statements Question 1 Question 2 Code challenge: Elevator Code challenge: Odd Even If-Elif-Else Statements Question 1 Question 2 Code challenge: Red team blue More Complicated if-elif-else Statements Question 1 Question 2 Code challenge: Red Team Blue Team Code challenge: Order x, y and z Pseudocode Question 1 Question 2 Code challenge: Starting Player Code Testing Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Test Your Understanding Question 1 Question 2 Question 3 Additional Challenges Code challenge: Days Until Christmas Code challenge: pH Scale Code challenge: Algorithm Implementation Code challenge: Simple Calculator Code challenge: HSC Bands Code challenge: Tennis Calls Lists and Loops# Lists Question 1 Question 2 Indexing Question 1 Question 2 Question 3 Question 4 Question 5 Code challenge: Item Number Code challenge: What Month Is It? List Operations Question 1 Question 2 Question 3 Question 4 Code challenge: Another Thing To do List Joins Question 1 Question 2 Question 3 Code challenge: Charm Bracelet Converting To Lists Question 1 Question 2 Code challenge: String to List Code challenge: Shopping List Code challenge: Secret Message While Loops Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Common While Loop Errors Question 1 Question 2 Question 3 Question 4 Code challenge: Forever i Code challenge: Count Up Code challenge: Baby Shark Code challenge: Double Until 10000 Code challenge: Double Until... While Loops With Lists Question 1 Question 2 Question 3 Question 4 Question 5 Code challenge: All the numbers! While Loops With Input Question 1 Question 2 Question 3 Code challenge: Echo Forever Code challenge: Add To The List Code challenge: What Is The Password? While Loops With Conditionals Question 1 Question 2 Question 3 Question 4 Question 5 Code challenge: Odd Numbers For Loops Question 1 Question 2 Question 3 Question 4 Question 5 Code challenge: Cubes Code challenge: Multiply All Range Question 1 Question 2 Question 3 Question 4 Question 5 Code challenge: Count Up For Loops With Conditionals Question 1 Question 2 Question 3 Question 4 Code challenge: Count Up and Down Code challenge: Crazy Case Code challenge: Prime Number Equivalent Loops Question 1 Question 2 Question 3 Nested Loops Question 1 Question 2 Question 3 Question 4 Code challenge: Alarm Clock Code challenge: Grid Code challenge: X Marks The Spot Pseudocode Question 1 Question 2 Question 3 Additional Challenges Code challenge: Last Letter Code challenge: Fibonacci Code challenge: Validate Password Code challenge: Make A Mountain Modules and Functions# The Math Module Question 1 Question 2 Question 3 Code challenge: Factorial Code challenge: Calculate The Sine Random Integers Question 1 Question 2 Question 3 Question 4 Question 5 Random Floats and Using Probabilities Question 1 Question 2 Question 3 Question 4 Code challenge: Fitness Wheel Pseudorandomness Question 1 Question 2 Question 3 Time Question 1 Question 2 Question 3 Question 4 Code challenge: Factorial Time! Code challenge: Quick Maths Code challenge: 5 Seconds datetime Question 1 Question 2 Question 3 Question 4 Code challenge: What Day Is Your Birthday? Code challenge: End Of Year Countdown Functions Question 1 Question 2 Question 3 Question 4 Question 5 Function Scope Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Code challenge: Energy Code challenge: Volume Of A Cylinder Code challenge: 8-ball Code challenge: Fibonacci Optional Parameters (Keyword Arguments) Question 1 Question 2 Question 3 Question 4 Question 5 Code challenge: Happy Birthday! Code challenge: Weight Function Returns Question 1 Question 2 Question 3 Question 4 Code Challenge: Error Message Code Challenge: Hours Minutes Seconds Custom Modules Code Challenge: Rectangle Properties Code Challenge: Intergalactic Representing Numbers in Binary Question 1 Question 2 Question 3 Question 4 Code Challenge (Extension): Converting Between Binary and Decimal Two’s Complement Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Code Challenge (Extension): Two's Complement The Hexadecimal System Question 1 Question 2 Question 3 Code Challenge (Extension): Converting Between Hexadecimal and Decimal ASCII Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Pseudocode and Flowcharts Question 1 Question 2 Question 3 Question 4 Data Structures# Introduction to Arrays Question 1 Question 2 Multi-Dimensional Arrays Question 1 Question 2 Question 3 Question 4 Code challenge: Use An Array To Store Temperature Values Code challenge: Use An Array To Store An Image Records Question 1 Question 2 Question 3 Code challenge: Catalogue A Library Data Dictionaries Question 1 Question 2 Question 3 Question 4 Sequential Files Question 1 Question 2 Stacks Question 1 Question 2 Question 3 Question 4 Code challenge: Create A Stack Dictionaries Question 1 Question 2 Question 3 Question 4 Code challenge: Price Check Code challenge: Grades Code challenge: Update Grades Code challenge: Dicrionaries Combined Algorithms and Code Design# Algorithms Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Draw a Box: Algorithm Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Draw a Box: Desk Check Question 1 Question 2 Question 3 Representing and Storing Data: 8 Queens Question 1 Question 2 Question 3 Divide and Conquer: Merge Sort Question 1 Question 2 Question 3 Question 4 Question 5 Applying Divide and Conquer Algorithms Question 1 Question 2 Question 3 Understanding Algorithms Question 1 Question 2 Question 3 Question 4 Question 5 Top-down and Bottom-up Design Question 1 Question 2 Question 3 Structure Charts Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Online Code and Collaboration Tools Question 1 Question 2 Question 3 The Object-Oriented Paradigm# OOP Introduction# Creating Objects Question 1 Question 2 Code Challenge: Build a Ship Code Challenge: Build the Fleet Attributes Question 1 Question 2 Code Challenge: Check the Fuel Code Challenge: Refuel Code Challenge: Refuel by Weight General Methods Question Code Challenge: Fueling Safely Code Challenge: Fueling Percent Code Challenge: 🔫 Lasers Class Attributes and Methods Code Challenge: Track the Fleet Size Code Challenge: Register Ships OOP Continued# Inheritance Example Code Challenge: Bombs Away! Super Code Challenge: Attack Ship Hierarchical Inheritance Code Challenge: Infinite Cargo Ship Multilevel Inheritance Code Challenge: Shields Up Multiple Inheritance Example Code Challenge: Awesome Ship Checking Instances Code Challenge: Spaceship Scanner Polymorphism and Duck Typing Code Challenge: Identify Yourself! Code Challenge: Upgraded Lasers Special Methods# Unary Special Methods Code Challenge: Identify Yourself! Redux Binary Special Methods Code Challenge: Set Phasers to Equal Code Challenge: Sorting the Fleet Code Challenge: CargoShip Status Report Extension: Container Methods Code Challenge: CargoShip Items Data Structures Part 2# Linked List Code Challenge: Linked List Stack Code Challenge: Stack Binary Search Tree Code Challenge: Binary Search Tree Hash Table Code Challenge: Hash Table Code Challenge: Hash Table with Collision Resolution Extensions Extension: Doubly Linked List Extension: Queue Extension: Better Linked List Mechatronics# Introduction# Exercise: Applications Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Exercise: Extension Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Question 8 Question 9 micro:bit# MicroPython Editor Question 1 Question 2 Flashing Question 1 Question 2 Question 3 Question 4 Exercise: Light and Sound Question 1 Question 2 Question 3 Exercise: Theremin Question 1 Extension: Question 2 Exercise: SOS Question 1 Question 2 micro:Maqueen Introduction# Exercise: Light Show Question 1 Question 2 Question 3 Exercise: Rodeo Question 1 Question 2 Exercise: Line Question 1 Exercise: Rescue Question 1 Question 2 Extension: CNC Plotter Question 1 Electronics# Power and Energy Question 1 Question 2 Question 3 Question 4 Exercise: Electrical Requirements Question 1 Question 2 Question 3 Question 4 Exercise: Wiring Diagrams Question 1 Question 2 Question 3 Question 4: Extension Sensors# Exercise: Sensors Question 1 Question 2 Question 3 Question 4 Exercise: I2C Question 1 Question 2 Question 3 Exercise: HC-SR04 Question 1 Question 2 Question 3 Question 4 Actuators# Exercise: Actuators Question 1 Question 2 Question 3 Question 4 Exercise: Motion Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Exercise: Wiring Question 1 Question 2 Question 3 Controls# Open-Loop Control Question 1 Question 2 Question 3 Exercise: Open Loop Question 1 Question 2 Question 3 Bang-Bang Control Question 1 Question 2 Question 3 Exercise: Bang-Bang Control Question 1 Question 2 Question 3 Exercise: PID Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Question 8 Exercise: micro:Maqueen PID Question 1 Question 2 Question 3 UI/UX# Exercise: Accessibility Question 1 Question 2 Question 3 Question 4 Exercise: UI Design Question 1 Question 2 Question 3 Question 4 Question 5 Software Automation# Design, Applications and Impact# Exercise: Applications of Machine Learning Algorithms