Which of the following is the same as s[0:-1]?

Which of the following is the same as s[0:-1]? 



Answer: s[:len(s)-1]


Python

Learn More Multiple Choice Question :