Skip to content Skip to sidebar Skip to footer

Valueerror: Invalid Literal For Int() With Base 10: '-' M[i][i] = Int(d[i])

Im working on the code the finding the maximum evaluation (ignoring precedence) such as 2 5+ 3*2 -1 + -4 * -3 Output 16 40000000000 I have the following code which returns the foll

Solution 1:

There is a similar question asked here and I found the answer by SethMMorton useful by using a function to force conversation of float numbers in string type directly to int. Give it a try.


Post a Comment for "Valueerror: Invalid Literal For Int() With Base 10: '-' M[i][i] = Int(d[i])"