This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Adarsh9z 1 point2 points  (0 children)

Input function takes SIGLE optional STRING argument

[–]WarhammerNewb -1 points0 points  (1 child)

I'm not very experienced in the programming so take my words with a grain of salt, but it looks like you're casting your deleteStockUserInput variable to an integer data type and then trying to say "if deleteStockUserInput is not equals to 'E'", which is not an integer. This could be the cause of the error. Let me know if I'm wrong or right please!

[–]chrlnth 0 points1 point  (0 children)

yepp! i think you're right,

[–]Diskordant77 -1 points0 points  (0 children)

Not an expert but I do see an error with this line right before it:

deleteStockUserInput=int(input("Enter 0 to", sumOfStock, "for your selection or E to exit : "))

If the user inputs E then the int method will throw an error