Q. Which method converts a string to an integer?
Solution:
int() converts a string like ’10’ to an integer, e.g., int(’10’) = 10.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
int() converts a string like ’10’ to an integer, e.g., int(’10’) = 10.
Strengthen Your Practice with our comprehensive question bank.