2/17 keys() and values() HEL PLEASE


#1

Please help me, i don't know what to do(((

my_dict = {
"name": "Karacho",
"Age": 22,
"BDFL": False
}

print my_dict.keys()

Oops, try again. Make sure to call .values() on my_dict


#2

What does it mean? I hope you read the instructions well before you posted this. You should call my_dict with .values() . Syntax is like this:

print my_thing.values()

Just add a second print statement after keys() method.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.