Computer Science, asked by pramada88, 4 months ago

Suppose a tuple T is declared as T = (10, 12, 43, 39) , which of the following is incorrect? a) rint * (T[1]) b) T[2] = - 29 c) print * (max * (T)) d) print (len * (T))​

Answers

Answered by Anonymous
3

Answer:

Python variables do not need explicit declaration to reserve memory space. The declaration happens automatically when you assign a value to a variable. The equal sign (=) is used to assign values to variables.

Answered by duragpalsingh
2

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

Similar questions