how to convert str to int in python 2 code example Example: python parse int as string >>> str(123) '123'