1. What will it do?
What do you think the following program will do when it is run? Press the Run button and see if you’re right!
2. What happened?
Run the following program. What went wrong? Edit the code to fix the error and then run it again.
3. How about some numbers?
Predict the output of the following program and then run it to see what happens.
4. Blank lines?
In the program above, the four lines of code are separated by blank lines. Are these blank lines necessary for the program to run? Do they affect the program’s output? Edit the code to find out!
5. More operations.
Run the following program and use the result to determine the meaning of the * and ** operations.
6. Something big.
Use the editor below to create and run a program that calculates and displays the value of 3500.
Next
What is a Variable?