Jak rozstać się od konkretnego Charecter TFRM koniec ciągu

print x.rpartition('-')[0]
Inquisitive Ibex