Display text with and without a print statement

The code in the first code block shown below, labeled as an "In" block, uses a print statement to display the word "hello". In this case, the word is displayed stand-alone below the code block.

The second code block simply contains the word "hello". In this case, the word is displayed on a line that is labeled as "Out" block. This behavior is similar to that which may be observed using an interactive Python IDE.

In [1]:
print("hello")
hello
In [2]:
"hello"
Out[2]:
'hello'

Housekeeping material

Author: Prof. Richard G. Baldwin

Affiliation: Professor of Computer Information Technology at Austin Community College in Austin, TX.

File: DisplayText01.html

Revised: 05/10/18

Copyright 2018 Richard G. Baldwin