Let’s say you have a string, and you want to remove the last character in it.
How can you do so?

syntax


#string
string = 'hello'

#remove the last character of a string
print(string[:-1])    

output

hell

English today is not an art to be mastered it's just a tool to use to get a result