Hello everyone. I have a value in a dictionary that I need to divide by a float and then append the dictionary to update the value. When I try to do this python says it can’t do this as the number is not a float.
Here is what I have so far:
car = {‘price’: ‘30000’}
@rob42 Excellent, now I have the price variable as a float. I divided by the number I need…now how do I append the original dictionary with the updated value?