CBSE Class 11 Computer Science Question 55 of 114

Tuples — Question 7

Back to all questions
7
Question

Question 7

How is an empty tuple created ?

Answer

There are two ways of creating an empty tuple:

  1. By giving no elements in parentheses in assignment statement.
    Example:
    emptyTuple = ()
  2. By using the tuple function.
    Example:
    emptyTuple = tuple()
Answer