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

Ask for a name · ⁨בקש שם פרטי⁩

English

Ask for a name

input() reads one line that the user types. Store it in a box, then use it.

When you press Run, the program waits: a highlighted box appears under the code. Type a name there and press Enter. Check answer types Sam for you.

עברית

בקשה לשם

input() קורא שורה אחת שאותה המשתמש מקליד. אחסן אותה בקופסה, ואז השתמש בה.

כאשר לוחצים על הרץ, התוכנית מחכה: מופיע תיבה מודגשת מתחת לקוד. הקלד שם שם ולחץ על Enter. בדוק תשובה מכניס עבורך Sam.

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

IGCSE, A-Level & AP