adplus-dvertising
frame-decoration

Question

What is the output of the code shown?
a='hello'
q=10
vars()

a.

{‘a’ : ‘hello’, ‘q’ : 10, ……..plus built-in names set by Python….}

b.

{……Built in names set by Python……}

c.

{‘a’ : ‘hello’, ‘q’ : 10}

d.

Error

Posted under Python

Answer: (a).{‘a’ : ‘hello’, ‘q’ : 10, ……..plus built-in names set by Python….}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown?