Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('\nChave Interativa para identificação de taxons\n'
- '-> Museu Tauari\n')
- caractere = str(input('Digite um caractere presente no espécime: '))
- taxonA = ['braço', 'perna', 'olhos']
- taxonB = ['braço', 'perna', 'nariz']
- taxonC = ['cabeça', 'pés', 'nariz']
- taxonD = ['antena', 'bigode', 'torax']
- listas = [taxonA, taxonB, taxonC, taxonD]
- indices1 = set()
- indices2 = set()
- for (taxon, index) in zip(listas, range(len(listas))):
- if caractere in taxon:
- indices1.add(index)
- caractere2 = str(input('\nDigite outro caractere: '))
- for (taxon, index) in zip(listas, range(len(listas))):
- if caractere2 in taxon:
- indices2.add(index)
- print(indices1.intersection(indices2))
Add Comment
Please, Sign In to add comment