Quiz · Dicts and sets · lesson 2 of 11
Quiz — get and in
What does the program print?
stock = {"apple": 3, "pear": 0}
print(stock.get("pear", 5), stock.get("plum"), "plum" in stock)Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.