Skip to content

A number from 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.

Log in or create account

IGCSE, A-Level & AP