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

ingdanielperez_if_else_python

n = 95
s = None
if 90 <= n <= 100:
    s = "A"
elif 80 <= n < 90:
    s = "B"
elif 70 <= n < 80:
    s = "C"
elif 60 <= n < 70:
    s = "D"
else:
    s = "F"
print("Nota: {0} {1}".format(s, n))

if n>=60:
    print("Aprobado")
else:
    print("Desaprobado")

print( "Aprobado" if n >= 60 else "Desaprobado" )

Advertisements
Loading...

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