Posts by Myckel Anderson • 3 points
2 posts
-
0
votes2
answers122
viewsA: Treating a string input when I hit enter without typing anything
soma = media = cont = 0 maior = menor = 0 r = 's' while r != 'n': while True: try: n = float(input('Digite um número inteiro: ')) break except ValueError: print('Entrada Inválida!') soma += n cont…
-
-1
votes2
answers122
viewsQ: Treating a string input when I hit enter without typing anything
Talk to the guys! If anyone can help me? When he asks me if I want to continue and I press enter without typing anything he lets me proceed. I wish that when I hit enter without typing anything it…