Write a program to copy elements 44 and 55 from the following tuple into a new tuple.
Given:
tuple1 = (11, 22, 33, 44, 55, 66)
Expected output:
tuple2: (44, 55)
Solution:
tuple1 = (11, 22, 33, 44, 55, 66) tuple2 = tuple1[3:-1] print(tuple2)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer