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
- Getting Two Numbers
- Doing the Math
- Choosing an Operation
- Showing the Answer