types of for loop python code example Example: python type for loop key: str for key in cache: print(key)