There is no conversion, calling the built-in function
int
by passing it a string, the string remains a string, a integer object is returned from the function.input_str = "10" print(type(input_str)) returned_int = int(input_str) print(type(input_str)) print(type(returned_int))
Output:<class 'str'>
<class 'str'>
<class 'int'>