1st = "abcdefghij"
2st = st[:-1] // Returns string with last character removed
1str = "string_example"
2str = str[:-1] # -> returns "string_exampl" (-> without the "e")
1string = "Hello World"
2string = string[:-1] # This overwrite the string to have the last letter removed.
3print(string)# Then we print the variable string
1your_string = "hello"
2your_string = your_string[:-1] # this removes the last character from your string