W1040 Printing and String Interpolation

From Coder Merlin
Revision as of 20:46, 28 October 2019 by Chukwuemeka-tinashe (talk | contribs) (Created page with "thumb|link=|Teletype == Prerequisites == * W1037 Expressions == Background == A '''teletype machine''' (or teleprinter) is an electromechanical devic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Teletype

Prerequisites[edit]

Background[edit]

A teletype machine (or teleprinter) is an electromechanical device which can be used to send and received typed messages over a distance. It was one of the first devices which enabled the layman, not trained in Morse Code, to communicate easily with another.

Introduction[edit]

The print function is one of the most basic functions available and is also one of the most useful. It provides us with the ability to easily output data from our program, most often to the console. As such, it is invaluable for both a completed programming and for assisting us to debug a program during development.

Basic Usage[edit]

In its most basic form, the print function takes a single argument. It's able to print integers, floating points, Booleans, and strings.

Key Concepts[edit]

Exercises[edit]

References[edit]