TOPIC

Python - Recebo Rumtime Error

Alexandre asked 2 years ago

PYTHON

Recebo RUMTIME ERROR

Traceback (most recent call last): File "Main.py", line 12, in n = float(input()) EOFError: EOF when reading a line Command exited with non-zero status (1)

v = [] posicao = 0 cont = 10000000 for i in range(1, cont): n = float(input()) if n <= 10: v.append(n) print('A[{}]= {}'.format(posicao, v[len(v) - 1])) posicao += 1 if len(v) == 101: break

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.