LinkedIn Python Skill Assessment Quiz Answers

Review the code below. What is the correct syntax for changing the price to 1.5?

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

Review the code below. What is the correct syntax for changing the price to 1.5?

fruit_info = {
  'fruit': 'apple',
  'count': 2,
  'price': 3.5
}
  1.  fruit_info ['price'] = 1.5
  2.  my_list [3.5] = 1.5
  3.  1.5 = fruit_info ['price]
  4.  my_list['price'] == 1.5

Correct Answer:

  •  fruit_info ['price'] = 1.5

Latest Updates

No posts found in this category.