Code Lab BetaBUILD. RUN. DISCOVER.

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

Challenges / 01

Param Kit.

About 5–10 minutes
Your lesson
Write greet(name, title="friend"), returning f"{title}: {name}". Print greet("Mira") and greet("Ada", title="dev"). Then x = 8; def bump(): x = 3; return x. Print bump() and x. Expected: friend: Mira dev: Ada 3 8

Combines default/keyword with local scope.

challenge_01.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01greet with default title
02keyword title="dev"
03console is friend: Mira / dev: Ada / 3 / 8
…0/10000
ConsoleWrite the code. Bring it online.
›
Calculators BG — 50+ free online calculators | Калкулатори БГ