Code Lab BetaBUILD. RUN. DISCOVER.
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Challenges / 01
Library Check-in.
Your lesson
Given: library name "City Library"; strings "1998" (opening year) and "42" (shelf count). Create name with the string. Create year and shelves by converting those strings with int() — directly or via an intermediate text variable. Print name, then year, then shelves — each on its own line. Expected output:
City Library
1998
42
Combines variables, text→number conversion with int(), and printing. Intermediate variables are allowed.
challenge_01.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01name, year, and shelves exist with the correct values/types
02year and shelves come from int() on the strings "1998" and "42"
03console is exactly City Library / 1998 / 42
…0/10000
ConsoleWrite the code. Bring it online.
›