Computer Science, asked by abcd1554, 1 month ago

study the following expression:str[(1,1).(2,2).(3,3)]what type of data is in this expression

Answers

Answered by nagarajn1137
2

Answer:

Python MCQ Part 2 (Multiple Choice Questions) - Javatpoint

What type of data is in this expression? Explanation: The variable str has a list of tuples attached to it. Hence it is a list of tuples. So, option (c) is the correct answer.

Answered by ayush7652051895sl
0

Answer:

Tuples

Explanation:

  • Tuple is a type sequential data type which contains elements of many data types, but it is immutable in the programme, i.e., it can't be changed or the values assigned to any variable in the form of tuples can't be changed.
  • To put it another way, a tuple is a set of Python objects which are separated by commas and due to its static nature, the tuple is faster than the list.
  • For example, "(5, 9, 11, 3, 22, 14)" is a "6-tuple."

#SPJ3

Similar questions