This repository was archived by the owner on Feb 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal_testing.py
More file actions
67 lines (53 loc) · 1.36 KB
/
local_testing.py
File metadata and controls
67 lines (53 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# # def testing():
# # print 'test'
# # a = 10
# # b = 19
# # print a+b
# # c = a*b
# # print c
# #
# # testing()
# # x=3
# # print lambda x: x*2
#
#
# a = {('uniq_constraints', 'UNIQUE (room_id,name,fname)', 'Ha Ha unique'),('uniq_constraints', 'UNIQUE (room_id,name,fname)', 'Ha Ha unique')}
# print type(a)
#
# print a
#
# a = int(input("Enter the value: "))
# b = int(input("Enter the value: "))
#
# if (a > 35 or a) and (b >35 or b):
# c = a+b
# print c
# else:
# print "Wrong"
#
#
s1 = int(input("Enter The mark :"))
s2 = int(input("Enter The mark :"))
s3 = int(input("Enter The mark :"))
s4 = int(input("Enter The mark :"))
s5 = int(input("Enter The mark :"))
t = s1 + s2 + s3 + s4 + s5
avg = t / 5
if s1 >= 35 and s2 >= 35 and s3 >= 35 and s4 >= 35 and s5 >= 35:
if avg >= 90:
print "S Grade"
elif avg >= 80:
print "A Grade"
elif avg >= 70:
print "B Grade"
elif avg >= 60:
print "C Grade"
elif avg >= 50:
print "D Grade"
elif avg < 50:
print "Dull Student :::: Pass"
elif avg :
if (s1 < 35 or s2 < 35 or s3 < 35 or s4 < 35 or s5 < 35) and avg > 50:
print "Dull Student :::: Fail"
elif (s1 < 35 or s2 < 35 or s3 < 35 or s4 < 35 or s5 < 35) and avg < 50:
print "Dull Student :::: Fail"