Member-only story

Python Programming Language Input Output Tutorial

Jesse L
4 min readAug 22, 2021

--

Hi everyone, welcome back. In this tutorial, I will show basic tasks involving input and output. Input is data that is received by the program and the output is data sent out by the program. This is the way the user interacts with a program and how the program receives its set of instructions to complete operations. We will go over basic input and output in this tutorial.

Output With Print

We can easily output to our console by using Python’s built in print() function:

print('hello world')Output
hello world

In the example above, we told the print() function to display the text ‘hello world’ to our console and in our output, we can see ‘hello world’ being displayed.

The data type that we are passing into the print() function is a string which is a text type. Data types are important because they let the program know how to handle a piece of data and what functions are applicable to it. Other data types include int and floats which are numeric types or bool which is a true or false value. For now we will stick to the string(str), type.

Quotes

As you may have noticed in the first example, we surrounded our ‘hello world’ text with single quotes. These single quotes tell…

--

--

Jesse L
Jesse L

Written by Jesse L

Hi, I'm a passionate technology enthusiast and lifelong learner. Beyond my technical pursuits, I'm also passionate about sharing my enthusiasm with others.

No responses yet