0Pricing
Coding for Kids · Lesson

Getting Two Numbers

Read user input.

Let's Build a Calculator! 🧮

Hi inventor! 🛠️ We're going to build our very own calculator! 🧮

First step: we need to GET two numbers from the person using it. Let's learn how to ask!

print('Welcome to my calculator! 🧮')

The input() Helper 🗣️

The word input() lets the computer ASK a question and wait for an answer. 🗣️

Whatever the person types gets saved in a box (a variable)!

name = input('What is your name? ')
print('Hello,', name)

All lessons in this course

  1. Getting Two Numbers
  2. Doing the Math
  3. Choosing an Operation
  4. Showing the Answer
← Back to Coding for Kids