WorksheetsPython Functions
Total questions: 11
Worksheet time: 3hrs 45mins
Name
Class
Date
1.
Write the line of code that will call the function.
(a)
2.
Write the line of code that will define the function, draw_coin
(a)
3.
Do you call or define a function first?
a)
call
b)
define
4.
Rewrite this line of code correctly!
(a)
5.
Rewrite this line of code correctly!
(a)
6.
Rewrite this line of code correctly!
(Hint: combine the words 'draw' and 'shape' into one word)
(a)
7.
In the code given, a function was defined. Now write the code to call the function.
(a)
8.
Rewrite the line of code that is written incorrectly to make it correct!
Hint: The mistake is when the function gets called
(a)
9.
Write the line of code that will define the function, draw_hat
(a)
10.
Rewrite this line of code correctly!
(a)
11.
Which is the proper way to call a function?
a)
b)
c)
d)
100 %
