7
Question Question 7
How is an empty tuple created ?
Answer
There are two ways of creating an empty tuple:
- By giving no elements in parentheses in assignment statement.
Example:
emptyTuple = () - By using the tuple function.
Example:
emptyTuple = tuple()