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!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.