string remove everything after character python
sep = '...' stripped = text.split(sep, 1)[0]
Source: stackoverflow.com
How to remove all characters after a specific character in python?
text = input() sep = '...' stripped = text.split(sep, 1)[0] print(stripped)