Run ❯
Get your
own Python
server
Result Size:
625 x 565
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
fruit = {"name": "apple", "color": "red"} print(fruit["price"])
x
fruit
=
{
"name"
:
"apple"
,
"color"
:
"red"
}
print
(
fruit
[
"price"
])
Traceback (most recent call last):
File "./prog.py", line 3, in <module>
KeyError: 'price'