Skip to content · ⁨דלג לתוכן⁩

A number from input · ⁨מספר מהקלט⁩

English

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.

עברית

מספר מהקלט

קרא מספר שלם והדפס אותו מכופל פי שניים. עבור הקלט 7, הדפס 14.

⚠️ input() תמיד מחזיר טקסט, גם כשהקלדת ספרות — "7" * 2 נותן "77". עטוף אותו ב-st int(...) כדי לקבל מספר שתוכל לבצע עליו פעולות חישוביות.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP