Created
March 28, 2017 02:45
-
-
Save prochafilho/7aed019036fb08dcff2e87ceae669886 to your computer and use it in GitHub Desktop.
algoritmo pra calcular nota em python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# algoritmo "aproveitamento aluno" | |
N1, N2 = 10, 8 | |
print "-------------------------" | |
print " ESCOLA JAVALI CANSADO " | |
print "-------------------------" | |
print "Primeira Nota: " | |
print N1 | |
print "Segunda Nota: " | |
print N2 | |
media = (N1 + N2) / 2 | |
print "-------------------------" | |
print "Media: %s" % media | |
if media <= 10 and media >= 9: | |
print "Aproveitamento: A" | |
elif media <= 8.9 and media >= 8: | |
print "Aproveitamento: B" | |
elif media <= 7.9 and media >= 7: | |
print "Aproveitamento: C" | |
elif media <= 6.9 and media >= 6: | |
print "Aproveitamento: D" | |
elif media <= 5.9 and media >= 5: | |
print "Aproveitamento: E" | |
else: | |
print "Aproveitamento: F" | |
print "-------------------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment