Comment se séparer d'un charteur spécifique à la fin de la chaîne en python

string = "stack_vidhya"
# write the symbol in parantheses
print(string.partition("_")[2])
#output
 #vidhya
Inquisitive Ibex