Posts by Uberlan Torres • 61 points
2 posts
-
3
votes1
answer204
viewsQ: Type a word and return the word with uppercase vowels
vogais = 'a, e, i, o, u' palavra = str(input('Digite uma palavra: ')) if palavra.upper() in vogais: print(palavra) else: palavra Well, I did so but it didn’t work. I can’t do the program compare and…
-
1
votes1
answer149
viewsQ: User type 15 random numbers, program returns the average, numbers larger than average and those smaller than average!
num = [] soma = 0 media = 0 for i in range(1, 16): num = int(input('Digite um número: ')) soma += num media = soma / 15 if num[i] > media: print('Maires que a…