cara membagi dari charecter spesifik tfrm akhir string

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