Jatuhkan semua karakter setelah karakter dalam python

sep = '...'
stripped = text.split(sep, 1)[0]
Courageous Cobra