|
Displaying ValuesTo display a value or the contents of a variable on your screen, use print. Here is a simple example:
This displays Hello, world! on your screen.
You can use print to display more than one value at a time. For example:
This displays The patient ID is 42113. There are two things to notice in this program:
Normally, each print statement displays its output on a separate output line. If you want two print statements to display to the same output line, put a comma (,) at the end of the first print statement. For example:
Once again, this displays The patient ID is 42113.
|