Suppose a tuple T is declared as T = (10, 12, 43, 39), which
of the following is incorrect?
a) print(T[1])
b) T[2] = -29
c) print(max(T))
d) print(len(T))
Answers
Answered by
3
Answer:
b) T[2] = -29
Explanation:
a) print(T[1]) - It will print element of index 1 in the Tuple i.e 12.
b) T[2] = -29 - This one is incorrect as tuples are immutable so we cannot change its element.
c) print(max(T)) - prints the maximum element in tuple i.e 43.
d) d) print(len(T)) - prints the number of elements in tuple i.e 4.
Learn More on Brainly.in:
Given the lists L=[1,3,6,82,5,7,11,92] , write the output of print(L[2:5])
https://brainly.in/question/25870565
Answered by
0
Explanation:
Suppose t=(5,7,3,2), Which of the following is statement is incorrect?
a) print(t[1:])
b) print(t+5)
c) print(t*5)
d) t=list(t)
Similar questions