wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Guided Note 5.3 For Loop and List

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

For loops are also really helpful when combined with other ____ ______ such as lists.

a)
data structures
b)

data types

c)

variables

d)

while

2.

In the video in KIRA 5.3 Section, Jagriti was using a list of different circle ____ values.

a)

radius

b)

diameter

c)

area

d)

circumference

3.

In the video in KIRA 5.3 Section, Jagriti changed the radius variable in the for loop to ____.

a)

increase

b)

decrease

c)

iterate

d)

reset

4.

For loops can be used to print the items in the list and the item ____ as well.

a)

index

b)

value

c)

type

d)

length

5.

‘i’ is the iterator and the ___ of list items.

a)

index

b)

value

c)

type

d)

length

6.

The enumerate function takes the list as the ______ and returns tuples containing the ___ and the ____ at that index.

a)

input, index, value

b)

output, value, index

c)

input, value, index

d)

output, index, value

7.

The range function gave us the ____ of the list and not the value.

a)

index

b)

length

c)

type

d)

position

8.

In the loop - for (i, items) enumerate(colors): i is the ____ position.

a)

current

b)

previous

c)

next

d)

last

9.

In the for loop, for char in password:, char represents each _______ in a string.

a)

character

b)

word

c)

sentence

d)

number

10.
How many times does the following program print the word ‘computer’:

word= "computer"  
for num in range(1,6):
 
    print(word)
a)
5
b)
6
c)
1
d)
0