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

Advertisement

fruit_info = {
‘fruit’: ‘apple’,
‘count’: 2,
‘price’: 3.5
}

  • fruit_info [‘price’] = 1.5
  • my_list [3.5] = 1.5
  • 1.5 = fruit_info [‘price]
  • my_list[‘price’] == 1.5
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend