
Boss
Boss: Light the First Beacon

Boss Fight!
Every passing test breaks a shield.
The Great Beacon of Emberreach has gone dark. Ships are lost in the fog, and the Guild Master has chosen you to bring it back. The beacon's control program has been wiped. You'll write a new one from scratch.
The Input box contains three answers: Ada, 4 and 2.5.
Assignment
- Ask
Keeper name?and store the answer inkeeper. - Ask
Number of lanterns?and store it as an int inlanterns. - Ask
Oil per lantern?and store it as a float inoil_each. - Set
total_oiltolanternstimesoil_each. - Each litre of oil burns for 4 hours: set
hourstototal_oil * 4. - Print this report (the first three lines come from the questions):
Keeper name? Ada
Number of lanterns? 4
Oil per lantern? 2.5
===== BEACON REPORT =====
Keeper: Ada
Lanterns: 4
Total oil: 10.0 litres
Hours of light: 40.0
The beacon is lit! Well done, Ada!
Use commas in print for the lines with numbers. For the
last line, glue with + so the ! sits right next to the name.
- Ask
Keeper name?and store the answer inkeeper. - Ask
Number of lanterns?and store it as an int inlanterns. - Ask
Oil per lantern?and store it as a float inoil_each. - Set
total_oiltolanternstimesoil_each. - Each litre of oil burns for 4 hours: set
hourstototal_oil * 4. - Print this report (the first three lines come from the questions):
Keeper name? Ada
Number of lanterns? 4
Oil per lantern? 2.5
===== BEACON REPORT =====
Keeper: Ada
Lanterns: 4
Total oil: 10.0 litres
Hours of light: 40.0
The beacon is lit! Well done, Ada!
Use commas in print for the lines with numbers. For the
last line, glue with + so the ! sits right next to the name.
main.py Python sleeping
Press Run to try your code, then Check to test it.