LinkedIn Python Skill Assessment Quiz Answers

What is the correct syntax for creating a variable that is bound to a dictionary?

Latest Update on 25th January, 2022 by Certification Course Answers

What is the correct syntax for creating a variable that is bound to a dictionary?

  1.  fruit_info = {'fruit': 'apple', 'count': 2, 'price': 3.5}
  2.  fruit_info =('fruit': 'apple', 'count': 2,'price': 3.5 ).dict()
  3.  fruit_info = ['fruit': 'apple', 'count': 2,'price': 3.5 ].dict()
  4.  fruit_info = to_dict('fruit': 'apple', 'count': 2, 'price': 3.5)

Correct Answer:

  •  fruit_info = {'fruit': 'apple', 'count': 2, 'price': 3.5}

Latest Updates

No posts found in this category.