Self-check only. Your answers stay in your browser — nothing is submitted or graded. Pick an answer for each question, then press Check my answers to see the answer key and explanations.
1. What does input("Name? ") do?
2. A person types 7 into x = input("Number? "). What does x hold?
3. If age = input("Age? "), what happens when Python runs print(age + 1)?
4. Which line asks for a whole number and stores it as a number?
5. What does print("Sam is", 12, "years old") show?
← Back to Lesson 7 · Enroll free in the full course