Vidyalelo
Python · Q78

Formatting and Decorators

Programming · Python · question 78

Q78

What will be the output of the following Python code snippet? a='hello' q=10 vars()

A.
{'a' : 'hello', 'q' : 10, ........plus built-in names set by Python....}
Answer
B.
{......Built in names set by Python......}
C.
{'a' : 'hello', 'q' : 10}
D.
Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board