iterate based on int python code example Example: iterate over numbers in int python for c in string: c = int(c) # do stuff with c