2 of 1 ·Personal Calculator

Lesson 2 · Python Foundation
Mini project using input and math.
Input & Interaction
input() asks the person using a program to type something. Begin by asking for a made-up name and printing a greeting. Convert text to a number before doing sums with it.
Click to zoomTime to build a real tool — a calculator that solves a problem you genuinely have.
Not 2 + 2. Something like: how many marks do I need in the final exam to reach 80% overall? Or: if I save ₹50 a week, when can I afford that ₹2000 thing?
A program that answers a question you actually asked is worth ten exercises.
9 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.