Discover: Outputs

Lesson Progress
0% Complete

Study the following code. What do you think it will do?
 

print("Hello Coders!")
print("What do you think this code does?")

This code...

print("Hello Coders!")
print("What do you think this code does?")

Would produce...

Hello Coders!
What do you think this code does?

 
The reason for this is because the print() statement, will display (or output), whatever is placed between its brackets.

Run the code and see if you were correct!
Adaption 1: Get the code to display your name.
Adaption 2: Get the code to display your full address, line by line.



Scroll to Top