C Program Using String Manipulation Functions Python