June 2017
Beginner to intermediate
274 pages
6h 49m
English
The fundamentals of interactivity are simple. We need to be able to tell the user things and we need the user to be able to tell us things. In service of those two goals, Python provides two built-in functions. These are print and input.
Create a simple.py file with the following code:

The print function takes any number of Python objects as parameters and prints them on the screen. The input function takes a string prompt as its parameter, prints it out, then reads text until the user hits Enter, and returns what the user typed as a string.
Run the following command to see how the print and
Read now
Unlock full access