Lesson 5 Digi Trailblazers Course 2
Lesson 5 Digi Trailblazers Course 2
Course 2
Inspiring the next generation of digital innovators
Lesson 5 – Modular Code
03
Activity 1
05
• Defining functions
• All functions begin with def
•
Lesson Summary •
Not all functions have input and output parameters
Functions are called when needed
• If there are parameters, the parameters should be in the
– Understand same order as the function call
MyFunction()
06
NCC Education Head South Africa Malaysia China Singapore
Office UK 1 Bridgeway Road Unit No.C-7-4 LG2-T1, Tower C 100 Victoria Street
The Towers Bridgeways Precinct Wisma Goshen, Plaza Pantai COFCO Plaza #13-01/02
Towers Business Park Century City No.5 Persiaran Pantai Baru No. 8 Jianguomennei Avenue National Library Building
Wilmslow Road Cape Town 59200 Kuala Lumpur Dongcheng District Singapore
Didsbury 7441 Malaysia Beijing 100005 188064
Manchester M20 2EZ South Africa China
United Kingdom
+27 21 830 5242 +60 3 2284 6200 +86 10 6520 4030 +65 6580 4555
+44 (0) 161 438 6200
Monday to Friday Monday to Friday Monday to Friday Monday to Friday
Monday to Friday 08:30 – 17:00 09:00 – 17:00 09:30 – 18:30 09:30 – 17:00
08:30 – 17:00