Which of the following methods is used to convert a string representation of a number to its corresponding integer value?
Correct answer
B. int()
17 views
B. int()
17 views
The int() function in Python is used to convert a string representation of a number to its corresponding integer value.
Not sure why the answer is B? Ask here and get an explanation.