New course! Every coder should learn Generative AI!
Try a free lesson0
Can you slice a tupule
Can you slice a tupule in python?
1 Answer
+ 1
Christopher Martin yes you can.
tup = (1, 2, 3, 4, 5)
print(tup[0:2])
#(1, 2) is the output.
Can you slice a tupule in python?