Using Python: Part 1: Console Input and Output

Learning Python

Using Python

Python is a general-purpose interpreted programming language. It emphasizes readability through the use of whitespace and supports multiple programming paradigms such as functional and object-oriented models.


Console Input and Output

Before there were graphical user interface windows, input and output worked through what was called the console. This was a communication method where text was typed and the results of whatever was run were also shown as text. Over time, this became known as the command-line.

Console Input

Console input works through the function input(). This records whatever was typed up to the pressing of the ENTER key and returns it.

Console Output

The function print() shows data on the console.

Play with the example on Repl.it!