How to print a string till a character?

  python-3.x

string s is passed as input and char c is also passed. output should be string till c.

Input:
manager
e
output:
manag

Can you tell it how can i do this?

Source: Python-3x Questions

LEAVE A COMMENT