Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

test_AMY_TRELOAR.py

# Hello World program in Python
def check_speed(speed):
    if speed < 60:
        return ("OK")
    else:
        print ("over")
        km_over = speed - 60
        if km_over % 5 == 0:
            dem = speed/5
            return (f"{round(dem)} demerit points")
            
        else:
            dem = speed/5
            return (f" approx {round(dem)} demerit points")
        return km_over
    
print(check_speed(70))

print (10/5)
print (10%5)
print (5%10)

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.