p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Dictionaries
Exercise: Access nested dictionary value
Exercise: Access nested dictionary value
Which city does Bob live in? Get the value from the nested dictionary and assign it to the variable
city
.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output