Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esportes = ['atletismo', 'basquetebol', 'bocha', 'ciclismo', 'esgrima', 'futebol de sete', 'goalball', 'halterofilismo', 'hipismo', 'judo', 'nataçao'
- , 'remo', 'rugbi', 'tenis', 'tiro', 'vela', 'voleiboi']
- def main():
- pos = int(input('Digite a posição que quer: '))
- letra = input('Digite a letra que quer: ')
- tam = int(input('Digite o tamanho que quer: '))
- for esporte in esportes:
- if letra == esporte[pos-1] and tam == len(esporte):
- print(esporte)
- while True:
- main()
Advertisement
Add Comment
Please, Sign In to add comment