Turkimans / Py-datatypes-lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Py-datatypes-lab

Tasks:

Question 1:

  • Make a list with 3 elements
  • add an element to the end of list
  • remove an element from the list
  • reverse the list
  • sort the list
  • add an element at the start of the list
  • print the index of the last element

Question 2: Consider the following list: people = ["Ahmed", "Nasser", "Mohammed"]

  • print the list in the following format: Ahmed, Nasser, Mohammed
  • hint: read about join()

Question 3:

  • Make a list of 3 dictionaries, each dictionary should contain information such as: name, phone_number
  • now add 1 more dictionary to the list
  • now delete the name from the first dictionary
  • update the phone number of the last person
  • check if a first dictionary has a key called "name"

Submission:

  • After finishing the task upload your Python script file to the forked repo and then create a pull request.

About


Languages

Language:Jupyter Notebook 100.0%