CBSE Class 11 Computer Science Question 93 of 173

Data Handling — Question 22

Back to all questions
22
Question

Question 22

int('a') produces error. Why ?

Answer

int() converts its argument into an integer. As 'a' is a letter, it cannot be converted into a valid integer hence int('a') produces an error.

Answer