Skip to content

Instantly share code, notes, and snippets.

@sleebapaul
Created October 26, 2017 08:25
Show Gist options
  • Save sleebapaul/c4cf254b77015a2efba4f4bc2ecb97ba to your computer and use it in GitHub Desktop.
Save sleebapaul/c4cf254b77015a2efba4f4bc2ecb97ba to your computer and use it in GitHub Desktop.
Why all should learn how to code?
student = ["A", "B", "C", "D", "E"]
marks = [21, 35, 13, 26, 49]
n = len(marks)
count = 0
count1 = 0
for i in range(n):
if marks[i] >= 25:
print student[i] + "has passed"
count = count + 1
else:
print student[i] + "has failed"
count1 = count1 + 1
print "No.of students Passed: "+str(count)
print "No.of students Failed: "+str(count1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment