+ 1
How to delete the last letter in a string on python 3
I have that question, y don't have any idea please help
3 odpowiedzi
+ 2
The easiest way is probably by doing this:
myString = "Hello"
myString = myString[:-1]
0
do this
@ juan diago
string=input(' ')
del string[-1]
print(string)
0
thanks, you save me