Lesson 4 of 26 · about 12 min
Talking to the user
input() asks the user a question and always gives back text. Convert it with int() or float(), and build answers with f-strings.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- input()
- Type conversion
- f-string
Free to try in F02 Programming 1: Thinking in Steps:
The first 3 lessons of every course are free, no account needed.