python change number format string to integer code example Example: how to turn a string into an integer python a_string = "1234" a_int = int(a_string)