SyntaxFix
Write A Post
Hire A Developer
Questions
Use float() in place of int() so that your program can handle decimal points. Also, don't use next as it's a built-in Python function, next().
next
Also you code as posted is missing import sys and the definition for dead
import sys
dead