Posts by Bryan Ribeiro Melo • 5 points
2 posts
-
-3
votes1
answer34
viewsQ: Problem with Python Dictionaries
def main(): insereDic() def insereDic(): frase = input('>>>') for i in frase: if i in dic: dic[i] =+ 1 else: dic[i] = 1 print(dic) dic = {} main() Statement of the Year…
pythonasked Bryan Ribeiro Melo 5 -
0
votes1
answer303
viewsQ: Problem with larger and smaller (while)
Develop an algorithm that reads ten user-informed values and tells the highest and lowest read value. cont = 0 n = 0 maior = n menor = n while cont < 3: n = int(input('Insira os números:…