Getting Started with Python - MCQS
Questions
- What is the other name for tuple assignment?
unpacking
- In unpacking what is the important condition?
The number of variables on the left-hand side and the number of elements in the tuple should be equal.
MCQs
- What will be the output of the following code?
if 5 > 2:
print(“5 is greater than 2”)
>**a.** Syntax Error
**b.** 5 is greater than 2
- What will be the output of the following code?
if 5 > 2:
print(“5 is greater than 2”)
>**a.** Syntax Error
**b.** 5 is greater than 2