NEERAJ KANT
THE LEARNING DESK
01 / PYTHON • BEGINNER
Learning goal: Use variables, input, arithmetic operators, and output.
Task: Write a program that accepts the length and width of a rectangle and prints its area and perimeter. Use positive measurements in centimetres.
length = float(input("Length in cm: "))
width = float(input("Width in cm: "))
area = length * width
perimeter = 2 * (length + width)
print("Area:", area, "sq cm")
print("Perimeter:", perimeter, "cm")Check: The test values give an area of 40 sq cm and a perimeter of 26 cm.
Think further: What happens if someone enters a negative number? Add a condition that asks for positive measurements. This beginner version assumes the user enters numeric values.
02 / WEB DESIGN • BEGINNER
Learning goal: Organise a webpage using a heading, paragraph, and list.
Create a page about a hobby. Include one main heading, a two-sentence introduction, and a list of three things you enjoy about it. Use a fictional name if you include a name.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Hobby</title>
</head>
<body>
<h1>Why I Enjoy Gardening</h1>
<p>I enjoy watching plants grow.
Gardening helps me notice nature.</p>
<ul>
<li>Planting seeds</li>
<li>Caring for plants</li>
<li>Learning about seasons</li>
</ul>
</body>
</html>Self-check: Does the browser tab have a title? Is there exactly one main heading? Are all three list items visible?
Explain: The <title> names the browser tab, while <h1> is a visible heading on the page.
03 / DIGITAL LITERACY • SCENARIOS
Read each situation and explain the safest next step.
Teacher extension: Ask students to explain why each action is helpful, then create one new fictional scenario for a partner.
LET’S WORK TOGETHER