Computer Science
int('a') produces error. Why ?
Python Data Handling
24 Likes
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.
Answered By
16 Likes
int('a') produces error. Why ?
24 Likes
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.
Answered By
16 Likes