JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Tyre Pressure Update with starter code
Share
Explore
Gallery
Tyre Pressure Update with starter code
Tyre Pressure Update with starter code
The Task
Python Starter Code
Code Clips
The Task
Activity: Tyre Pressure 🏎️
The correct tyre pressure is 7. Higher or lower values mean there is a problem.
Start Here - Explore the program
Run the program entering different values to see what happens. (
7
,
4
,
9
,
0
)
Change the comparison operator to
!=
You will now need to change the result messages that are output to make sure the program gives the correct output.
Run program to see what happens.
Now try out other comparison operators. (See
CodeClips
for examples of comparison operators)
Change the messages that would get printed if the condition is
True
and if the condition is
False
to observe what will happen.
Good luck! 🍀
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.