Guest User

Untitled

a guest
Jul 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. wonder_woman = ['Wonder Woman','Patty Jenkins','Color',141,'Gal Gadot','English','USA',2017]
  2.  
  3. def is_usa(input_lst):
  4. if input_lst[6] == "USA":
  5. return True
  6. else:
  7. return False
  8.  
  9. def index_equals_str(lista, index, string):
  10. if (lista[index] == string):
  11. return True
  12. else:
  13. return False
  14. wonder_woman_in_color = index_equals_str(wonder_woman, 2, "Color")
  15. print(wonder_woman_in_color)
Add Comment
Please, Sign In to add comment