11. The Python library we used to plot the chart in the lab is
- Pandas
- Plotly
- MatPlotLib
- PyCoinGecko
Final Exam
12. When slicing in Python what does the “0” in this statement [0:2] specify?
- It specifies the position to start the slice
- It specifies the step of the slicing
- It specifies the position to end the slice
13. If var = “01234567” what Python statement would print out only the odd elements?
- print(var[1::2])
- print(var[3::1])
- print(var[2::2])
14. Consider the string Name=”EMILY”, what statement would return the index of 0?
- Name.find(“E”)
- Name.find(“L”)
- Name.find(“I”)
Shuffle Q/A 2
20. What does the index of “1” correspond to in a list or tuple?
- the third
- The first element
- The second element