In this tutorial, you'll learn how to accept input in Python. Your programs will be able to read your own input from the "Input" tab (the second tab) when you hit "Try it now" buttons. Let's get started!
The input function
So far, we've only been printing values. However, it's also useful to accept input values — in fact, most real-world programs you write will have to accept input in one form or another. First, let's look at one of the simplest ways to accept input. Let's use the input function.