A number from input
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Getting input →
A number from input
Read a whole number and print it doubled. For the input 7, print 14.
⚠️ input() always gives back text, even when you typed digits — "7" * 2 is "77". Wrap it in int(...) to get a number you can do arithmetic with.
Read a whole number and print it doubled. For the input 7, print 14.
Click Run to see the output here.