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.
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.