Skip to content
Solution Tyre Pressure
  • Pages
    • icon picker
      Solution
    • The Task
    • Python Starter Code
    • Code Clips

Solution

Solution

solution
# blank line
print('\n')
# INPUT

# read value, convert data type, assign to a variable
tyrePressure = int(input('Please enter the tyre pressure: '))

# PROCESS and OUTPUT
# condition: 'the tyre pressure is 7' is it a true statement
if tyrePressure != 7 :
# conditional message output
print('Warning pressure error')
#end if
original
# blank line
print('\n')
# INPUT

# read value, convert data type, assign to a variable
tyrePressure = int(input('Please enter the tyre pressure: '))

# PROCESS and OUTPUT
# condition: 'the tyre pressure is 7' is it a true statement
if tyrePressure == 7 :
# conditional message output
print('OK, the tyre pressure is correct')
#end if
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.