Skip to content

supeRdaem/Py-datatypes-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •