Question #573

What is the output of the code snippet below?
t=(1,2,4,3)
print(t[1:-1])

This will return (2, 4) . Slicing with tuples takes place just as it does with strings. (geeksforgeeks.org/tuples-in-python)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵