WorksheetsFinTech 02-2 Python
Total questions: 12
Worksheet time: 9mins
Which were the objectives for Day 2 Python?
Lists and dictionaries
Classes
Iteration
Custom functions
Indexing
Which data type has keys?
Dictionary
Lists
Functions
Data Frames
Which data type is ordered?
Dictionary
List
Variable
Function
Which are list functions?
append()
index()
items()
len()
Add the element "APPL" to list my_stocks:
(a)
Return the length of the list my_stocks:
(a)
Return the last item in list my_stocks:
(a)
Add tip to total using one operator:
(a)
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)
Review the image of the dictionary. How would you access the Apple stock (APPL) opening price?
(a)
How was Day 2 Python for you?
Any suggestions for improvement?
