Print Command Quiz

The first instruction you will most likely learn when using Python is the print() instruction. It is used to display/output a message on screen.

Using Variables
The print command can be used to output the content of a variable:

Using String Concatenation
You can join multiple strings together (string concatenation using +) to print them on a single line:

Casting numbers (e.g integers) into string and vice-versa:
You a number (e.g integer) into string using the str() function or a string into an integer using the int() function:

Take the Quiz! (open full screen)

Share Button
Posted in Computer Science, Computing Concepts, Quiz

Our Latest Book