Apr-20-2019, 12:43 AM
Hello everyone, here again..
i am getting a problem with a part of my coding
Traceback (most recent call last):
File "C:/Users/ivinj/PycharmProjects/mundo3/estresseeeeee.py", line 9, in <module>
novo = int(linha)
ValueError: invalid literal for int() with base 10: ''
I really don't know what it might be..
please help mee
i am getting a problem with a part of my coding
numero = int(input('informe o pedido\n:')) pedido = open(f'Pedidos_test\{numero}.txt', 'r') teste = [] testa = [] cont = 0 indic_pedido = 0 for linha in pedido: linha = linha.rstrip() novo = int(linha) print(novo)its giving me the error:
Traceback (most recent call last):
File "C:/Users/ivinj/PycharmProjects/mundo3/estresseeeeee.py", line 9, in <module>
novo = int(linha)
ValueError: invalid literal for int() with base 10: ''
I really don't know what it might be..
please help mee
