Q. How can you convert a string `'123'` to an integer in Python?
Code:
s = '123'
β
Correct Answer: (A)
int(s)
Explanation: `int()` converts a numeric string to an integer.