Lesson 2 _Functions

Lesson 2 Functions
In programming you might write a routine 
That you would use over and over again
1 / 10
next
Slide 1: Slide
ProgrammingFurther Education (Key Stage 5)

This lesson contains 10 slides, with interactive quizzes, text slides and 1 video.

time-iconLesson duration is: 50 min

Items in this lesson

Lesson 2 Functions
In programming you might write a routine 
That you would use over and over again

Slide 1 - Slide

6

Slide 2 - Video

00:54
What you must do
Using your onlinegdb 
Create a function called 
student_names 
then put pass below it - 2 Minutes 

Slide 3 - Slide

01:21
What is the brackets in the function use for?
A
To help define the function
B
It looks good
C
To do the calculation

Slide 4 - Quiz

03:39
Create a function called student_names
that prints out "Tom Bell" everytime you call it. Try it out in your onlinegdb compiler once your tutor is happy with your answer.

Slide 5 - Open question

05:40
What is the function
returning?

Slide 6 - Mind map

05:48
Create a function call favourite pet and return "cat" then call the function and print whatever is returned. Try it here first

Slide 7 - Open question

06:52
We will End Here

Slide 8 - Slide

Create a function called student_name
followed by pass

Slide 9 - Open question

We will End here!

Slide 10 - Slide