Answers for "remove the last character from a list python"

64

python remove last character from string

str =  "string"
str = str[:-1]  # Returns "strin"
Posted by: Guest on July-25-2020
8

python remove last element from list

record = record[:-1]
Posted by: Guest on May-18-2020

Code answers related to "remove the last character from a list python"

Python Answers by Framework

Browse Popular Code Answers by Language