Question

What is Tuple?

Answer

A tuple is an ordered set of immutable heterogeneous elements. In Python a tuple can be created by putting the comma-separated elements of the tuple in parentheses().
For example, suppose we want to represent the following elements of a book with code: 1021, title 'Programming in Python', binding type 'Hard Bound', and edition 2018: As a tuple it is written as: (1021,'Programming in Python', 'Hard Bound', 2018).

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free