The code below shows error if a decimal (eg. 49.9) is sent to next variable. Can you please tell me why? Why does int() converts it into an in
next
int()
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().
Also you code as posted is missing import sys and the definition for dead
import sys
dead