NEW
Font size
WorksheetsPythonL4
Total questions: 10
Worksheet time: 5mins
If we want to make a choice between 0 and 16 but only pick even numbers ?
random.randrange(0,16,2)
random.randint(0,16)
random.random()
Which one of the following functions can make a selection of many values without repetition ?
choice()
choices()
sample()
randint()
Which mode resets all the content of the file and writes in it ?
"a"
"x"
"w"
"r"
Which functions writes in the file ?
open()
write()
close()
append()
Which is the key function in working with files in Python?
open()
write()
close()
append()
Which mode create a new file?
"a"
"x"
"w"
"r"
Which functions changes the direction of your turtle?
right()
forward()
backward()
How can we draw with python ?
using random
using turtle
using math
Which function change the order of the list randomly?
choice()
choices()
shuffle()
sample()
How can we pick more than one choice randomly?
choice()
choices()
shuffle()
sample()
