C Program Using String Manipulation In Python For Loops