C Program Using String Manipulation In Python Iteration