Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FinTech 02-2 Python

Total questions: 12

Worksheet time: 9mins

Name
Class
Date
1.

Which were the objectives for Day 2 Python?

a)

Lists and dictionaries

b)

Classes

c)

Iteration

d)

Custom functions

e)

Indexing

2.

Which data type has keys?

a)

Dictionary

b)

Lists

c)

Functions

d)

Data Frames

3.

Which data type is ordered?

a)

Dictionary

b)

List

c)

Variable

d)

Function

4.

Which are list functions?

a)

append()

b)

index()

c)

items()

d)

len()

5.

Add the element "APPL" to list my_stocks:

(a)  

6.

Return the length of the list my_stocks:

(a)  

7.

Return the last item in list my_stocks:

(a)  

8.

Add tip to total using one operator:

(a)  

9.

If you have a dictionary, banks, with keys and values bank_name and market_cap respectively, write the for loop that would iterate over banks (first line only - remember the colon):

(a)  

10.

Review the image of the dictionary. How would you access the Apple stock (APPL) opening price?

(a)  

11.

How was Day 2 Python for you?

4 lines
12.

Any suggestions for improvement?

4 lines