MicrolearnENPTES

Reading input

Lesson 4 of 20 · Py.Micro

input() pauses the program and returns what the user typed, always as text.

input("Your name? ") shows the prompt and returns the typed line. Here the typed lines come from the input lines box; change them and run again.

Check yourself

What type does input() return?

Do it in the browser: a real Python tool, a short mission and instant feedback. No install.

Start this lesson — free
← Numbers and textTrue or False →

All lessons · Py.Micro