CBSE Class 11 Informatics Practices
Question 39 of 75
Conditional and Looping Constructs — Question 11
Back to all questionsThe code will raise a Error because we cannot convert the string '3.14' to an integer directly using int() function in Python due to the presence of a decimal point. Python expects the string to represent a whole number when converting to an integer.