Code Lab BetaBUILD. RUN. DISCOVER.
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Challenges / 03
Note Scan.
Your lesson
Given: notes = [" keep ", "skip", " keep", "stop", "keep"]. Build clean with strip for each line. Walk clean: on "skip" continue; on "stop" break; otherwise increase keep_count. Print len(clean), keep_count, and f"kept: {keep_count}". Expected output:
5
2
kept: 2
Text finale: strip + continue/break + counter + f-string.
challenge_03.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01clean has 5 cleaned strings
02keep_count is 2 via continue/break
03console is 5 / 2 / kept: 2
…0/10000
ConsoleWrite the code. Bring it online.
›