Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 17)
17.
What will happen if you use the int() function to convert a non-numeric string?
Error: Cannot convert non-numeric string to integer
The string will be converted to 0
The program will terminate
The string will be printed as is
Answer: Option
Explanation:
Using int() on a non-numeric string will result in a ValueError.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.