Advertisement
Adehumble

Week4 Coding Exercise 9

Feb 22nd, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. #9
  2. #a
  3. great_directors=[
  4. "Martin Scorsese",
  5. "Steven Spielberg",
  6. "Francis Ford Copoola"
  7. ]
  8. #great_directors.insert(1,"Michael Bay")
  9. #great_directors.remove("Steven Spielberg")
  10.  
  11. great_directors[1]="Michael Bay"
  12.  
  13. #b
  14. transformers=[
  15. "Optimus prime",
  16. "Megatron",
  17. "Bumblebee",
  18. "Starscream"
  19. ]
  20.  
  21. transformers[2]='Grimlock'
  22.  
  23. #c
  24. camping_trip_supplies=[
  25. "Socks",
  26. "Flashlight",
  27. "Tent",
  28. "Blanket"
  29. ]
  30. camping_trip_supplies[0]="Food"
  31.  
  32. #d
  33. tech_companies=[
  34. "Google",
  35. "Microsoft",
  36. "Blackberry",
  37. "IBM",
  38. "Yahoo"
  39. ]
  40. tech_companies[1:4]=["Facebook", "Apple"]
  41.  
  42.  
  43. print(great_directors)
  44. print("|||||"*24)
  45. print(transformers)
  46. print("|||||"*24)
  47. print(camping_trip_supplies)
  48. print("|||||"*24)
  49. print(tech_companies)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement