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()
int() only works for strings that look like integers; it will fail for strings that look like floats. Use float() instead.
float()