The short Python question by using Jupyter notebook

I don’t know how to handle this Python question and need guidance.

There are five very short questions about Python by using Jupyter notebook, which take you little time and you have plenty of time to complete the problem. I need a tutor who are good at using the Jupyter notebook. Actually, you also could help me to solve this problem if you are good at Python.

Attached is question you need to solve. There is only one thing you need to pay attention, please make the notes after your codes as detailed as you can. Thank you for your attention.