# Python

# Masterclass

The Python Masterclass is a course for students aged 11 and above who are keen to explore beyond the basics of coding. This course is designed to give students a jump-start in their learning journey with the view of equipping them with all they need for self-directed learning.

â€‹

Problem solving and mathematical concepts are core features of the curriculum, as there are numerous opportunities to apply these concepts when coding.

Course Details

Suitable for Ages 11 - 16

Platform: Python, Microsoft Visual Studio Code

1.5-hr sessions on a weekly schedule

Class Size of 10 - 12 (1:6 teacher student ratio)

Certificates issued on passing of each module

â€‹

Class Availability (weekly)

Wed: 4.30pm

Fri: 4.30pm

Sat: 1.30pm

Sun: 12.00pm

Challenge yourself, learn a real coding language.

While a drag-and-drop interface is great for children to learn logic, it will never replace text-based coding.

# Reinforce Mathematical Concepts.

Learning to code improve abstract reasoning, the foundation of mathematics.

Coding requires application of math

Apply math concepts in an environment that encourages understanding through experimentation.

Coding and math are related

Both math and coding take what we see everyday and create abstract models of reality.

Learn to code - one step at a time.

Similar to learning a foreign language, learning to code does not happen a 2-day course. It happens over time through constant reinforcement and application.

8

Fundamental Modules

Progressive Course Structure

Certificate on passing each module

# Stay ahead, learn Python.

Python is not only the easiest coding language to read and learn, it is also the most widely used in data science.

Python Masterclass

20 weeks per module

1.5 hours

There will be an open-laptop assessment after each module. Students who pass will receive a certificate.

Module 1: Syntax

Variable names, data types, arithmetic operators, block diagram notation

Module 2: For Loops

For loops, range, indentation rules

Module 3: Lists

Lists, calling, slicing, string slicing

Module 4: If-Else

Comparison operators, if, else-if, cases

Module 5: While Loops

While loops, loop counters, infinite loops

Module 6: Function

Defining functions, function variables, function inputs, function return

Module 7: Nested If-Else

2-layered statements, 3-layered statements, indentation rules

Module 8: Libraries

Math library, graphing (matplotlib)

## Interactive Math Related Python Examples

Press the play icon to run your code. The output will be giving on the right hand panel.

You can modify the code and experience what learning Python is like!

â€‹

Note: This is best viewed on a desktop. To reset the examples, navigate to the top left hand menu. Have Fun!

Multiplication Tables

Python can be used to create multiplication tables through applying loops. Loops are used to repeat certain segments of code and are a core feature of any programming language.

â€‹

Challenge: Modify the below code to show multiples of 8 instead of 5

## Exam Grading

We use conditionals (if-else statements) everywhere in our daily lives. A familiar example would be school subject grading. Click the right hand panel, enter your score and hit the enter key to know your grade

â€‹

Challenge: Try adding more conditions to the list

## 2019 PSLE Triangle Problem

Math and coding are intricately linked. We can use Python to solve challenging problems such as the PSLE Triangle Problem. Where students are challenged to find the percentage of grey triangles in the 250th figure of the below pattern.

â€‹

Given below are the first 3 figures of the pattern.

â€‹

Challenge: Modify the code to find the percentage of grey triangle to total triangles in the 2500th figure.