Created
October 26, 2017 08:25
-
-
Save sleebapaul/c4cf254b77015a2efba4f4bc2ecb97ba to your computer and use it in GitHub Desktop.
Why all should learn how to code?
This file contains 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
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