+ 1

How can i remove the last word from a string?(python)

i have to substitute the last word of a string with a word from a list

31st Jan 2017, 10:07 AM
Guido Parlatore
Guido Parlatore - avatar
1 Respuesta
+ 6
spilt the sentence with .split() method . then its easy
31st Jan 2017, 10:27 AM
Sun
Sun - avatar