# Use the function int() to turn a string into an integer string = '123' integer = int(string) integer # Output: # 123