Asking for the Name
Use input to talk with the user.
Talking to the Computer 💻
Hello, friend! 👋 So far WE told the computer things. Today the computer asks US a question and waits for our answer! 🤩
The input() Magic 🪄
The word input() makes the computer ask and wait for you to type.
Whatever you type becomes a string!
name = input("What is your name? ")
print("Hi!")All lessons in this course
- What Is a String?
- Joining Words
- Asking for the Name
- Big and Small Letters