add

PythonF

String – Print till char

A string S is passed as input along with a character C. The program must print the string value S till C is reached. Input Format:The first…