What is LessonUp
Search
Channels
AI tools
Beta
Log in
Register
‹
Return to search
Python Functions
Python Functions
1 / 10
next
Slide 1:
Slide
Computing
Upper Secondary (Key Stage 4)
GCSE
This lesson contains
10 slides
, with
interactive quizzes
and
text slide
.
Start lesson
Save
Share
Print lesson
Items in this lesson
Python Functions
Slide 1 - Slide
Write a function called sausages to allow you to multiple the number of sausages by 7
Slide 2 - Open question
What are parameters in a function?
A
Outputs of the function
B
Inputs for the function
C
Function names
D
Return types of functions
Slide 3 - Quiz
How do you call a function in Python?
A
invoke function_name
B
function_name()
C
execute function_name
D
call function_name
Slide 4 - Quiz
What symbol is used for comments in Python?
A
/*
B
//
C
--
D
#
Slide 5 - Quiz
What keyword is used to define a function?
A
method
B
def
C
function
D
define
Slide 6 - Quiz
What is the purpose of a loop in Python?
A
To repeat a block of code
B
To declare a variable
C
To define a function
D
To import a module
Slide 7 - Quiz
What does 'if' statement do in Python?
A
Imports a library
B
Evaluates a condition
C
Loops through a sequence
D
Declares a class
Slide 8 - Quiz
What method adds an item to a list?
A
extend()
B
insert()
C
attach()
D
append()
Slide 9 - Quiz
How do you access the first element?
A
list[0]
B
list[1]
C
list.get(0)
D
list.first()
Slide 10 - Quiz
More lessons like this
Computing On Spreadsheets 1-2 Lesson Help
August 2024
- Lesson with
12 slides
by
Science
Computing
Primary Education
Science
Computing On Spreadsheets 1-2 Lesson Help
February 2024
- Lesson with
12 slides
by
LessonUp Inspiration
Computing
Primary Education
LessonUp Inspiration
Science subjects - Inspiration slides
August 2023
- Lesson with
14 slides
by
LessonUp Academy
LessonUp
Primary Education
Lower Secondary (Key Stage 3)
Upper Secondary (Key Stage 4)
Further Education (Key Stage 5)
Higher Education (degree)
LessonUp Academy
Posters: Art and Advertising
March 2024
- Lesson with
25 slides
by
National Museums NI
Art and design
Primary Education
National Museums NI
Terms Revision
February 2025
- Lesson with
39 slides
by
English
English
Upper Secondary (Key Stage 4)
Further Education (Key Stage 5)
GCSE
English
Terms Revision
September 2024
- Lesson with
39 slides
by
English
English
Upper Secondary (Key Stage 4)
Further Education (Key Stage 5)
GCSE
English
2. The Supernatural in Macbeth
September 2024
- Lesson with
28 slides
by
English
English
Upper Secondary (Key Stage 4)
Lower Secondary (Key Stage 3)
GCSE
English
Active learning techniques in LessonUp
August 2023
- Lesson with
21 slides
by
LessonUp Academy
LessonUp
Upper Secondary (Key Stage 4)
BTEC
LessonUp Academy