Advertisement
Felanpro

List fun

Mar 16th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. kill_list = ["Justin Bieber", "Austin Mahone", "The Pope"]
  2.  
  3. print("Which one of these would you want to remove from the kill list?")
  4. print(kill_list[0:3])
  5.  
  6. choose_remove_from_kill_list = input("Which one? Type in the name: ")
  7.  
  8. if choose_remove_from_kill_list == "Justin Bieber" :
  9.     kill_list.remove("Justin Bieber")
  10.     print("Justin Bieber removed!")
  11. elif choose_remove_from_kill_list == "Austin Mahone" :
  12.     kill_list.remove("Austin Mahone")
  13.     print("Austin Mahone removed!")
  14. elif choose_remove_from_kill_list == "The Pope" :
  15.     kill_list.remove("The Pope")
  16.     print("The Pope removed!")
  17. else :
  18.     pritn("Invalid answer! ERROR: 404")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement