Ask coding questions
I did this super simple program but somehow I messed up, any ideas?
You want to do
top = battery["brand"]
(battery["brand"]) = top
With the 2nd one, its saying the brand of the battery now = 0, not top now equals the battery brand
line 10 you put top = 0 this would change top to 0
top = 0
thanks for all the info, it worked!