Skip to content

Instantly share code, notes, and snippets.

@deboraazevedo
Created June 22, 2019 18:01
Show Gist options
  • Save deboraazevedo/713ff4a0927bcb7cb3a1d61d55b9f2c6 to your computer and use it in GitHub Desktop.
Save deboraazevedo/713ff4a0927bcb7cb3a1d61d55b9f2c6 to your computer and use it in GitHub Desktop.
tenta pegar uma palavra e dizer de qual sublista a palavra é
list_a = ['father', 'arm', 'heart', 'wasp', 'lager']
list_e = ['less', 'weather', 'egg', 'bread', 'tell']
list_i = ['tree', 'beach', 'feet', 'eat', 'police']
list_o = ['all', 'fought', 'hot', 'lot', 'bot']
list_u = ['boot', 'cool', 'tune', 'soup', 'true']
list_uu = ['bus', 'blood', 'up', 'come', 'sun', 'son']
words_list = [list_a, list_e, list_i, list_o, list_u, list_uu]
word = input("Diga uma palavra: ")
for position in words_list.len():
if position == 1
if word is in words_list[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment