Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nomelinguagem = []
- total = []
- total2 = []
- vogais = list('aeiou')
- vogac = 0
- consc = 0
- vezes = int(input())
- for i in range(vezes):
- vezesvezes = int(input())
- iniciaislivros = []
- for i in range(vezesvezes):
- livro = input()
- iniciaislivros.append((livro[:1]).lower())
- iniciaislivro = ''.join(iniciaislivros)
- total.append(''.join(iniciaislivros))
- nomelinguagem.append((iniciaislivro[:1]).upper())
- for i in total:
- for x in i:
- if x not in total2:
- total2.append(x)
- for i in total2:
- if i in vogais:
- vogac += 1
- else:
- consc += 1
- nomelinguagem = ''.join(nomelinguagem)
- tempo = (len(total2)+vogac)/consc
- print('Nome da Linguagem: {}'.format(nomelinguagem.upper()))
- print('Lista de Palavras:')
- for i in total:
- print(i)
- print('Número de Vogais: {}'.format(vogac))
- print('Número de Consoantes: {}'.format(consc))
- print('Número Total de Letras: {}'.format(len(total2)))
- print('Tempo para aprender: {:.1f} horas'.format(tempo))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement