convert a string into int in python code example Example: convert string to int python my_string = "50485" print(int(my_string))