Code Lab BetaBUILD. RUN. DISCOVER.

Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.

Challenges / 01

Cafe Orders.

About 5–10 minutes
Your lesson
Given: items = ["latte", "tea", "latte"]. Print len(items). Loop over items with for and print each drink on its own line. Create order = {"drink": "latte", "price": 4.5}. Print order["drink"], then order["price"]. Expected output: 3 latte tea latte latte 4.5

List + loop + dictionary keys. All data is in the task.

challenge_01.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01len(items) prints 3
02for walks items
03order is a dict with drink and price; console matches
…0/10000
ConsoleWrite the code. Bring it online.
›
Calculators BG — 50+ free online calculators | Калкулатори БГ