Run ❯
Get your own Python server
❯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"} try: print(fruit["price"]) except KeyError: print("You are trying to access a dictionary item that does not exist!") except: print("Something else went wrong")
You are trying to access a dictionary item that does not exist!