1Use str. split() to remove everything after a character in a string
2a_string = "ab-cd"
3split_string = a_string. split("-", 1) Split into "ab" and "cd"
4substring = split_string[0]
5print(substring)
1text = input()
2sep = '...'
3stripped = text.split(sep, 1)[0]
4print(stripped)