Question For Practice 4

Question For Practice 4

  • Create a list of names and print all names using list.
  • Create a list of names and print all names using set.
  • Create an empty list of type string called days. Use the add method to add names of 7 days and print all days.
  • Add your 7 friend names to the list. Use where to find a day name that starts with alphabet a.
  • Create a map with name, address, age, country keys and store values to it. Update country name to other country and print all keys and values.
  • Create a map with name, phone keys and store some values to it. Use where to find all keys that have length 4.