-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpera.py
More file actions
123 lines (71 loc) · 1.58 KB
/
Opera.py
File metadata and controls
123 lines (71 loc) · 1.58 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#operators
print(" Student Grade Management System" )
#inputs
Name = input()
print(Name,"ID = 57YS2")
print(Name,"Roll No. = 101")
print("Subject")
a = int(input("DBMS = "))
b = int(input("c++ = "))
c = int(input("Aptitude = "))
d = int(input("Web Development = "))
e = int(input("DSA = "))
#results
print(" RESULTS")
print("DBMS = " ,a)
print("C++ = ",b)
print("Aptitude = ",c)
print("Web Development = ",d)
print("DSA = ",e)
#Average
T = (a+b+c+d+e)/5
print ("TOTAL AVERAGE = ",T)
Highest = max(a,b,c,d,e)
Lowest = min(a,b,c,d,e)
print("Highest = ", Highest)
print("Lowest = ", Lowest)
#comparison
print(" GRADE")
if(T>=90):
print(" -<A Grade")
elif(T>=75 and T<85):
print(" -<B Grade")
elif(T>55 and T<200):
print(" -<C Grade")
else :
print(" -<E Grade")
#Pass or Fail
for marks in [a,b,c,d,e]:
if(marks<30):
print("FAIL")
else:
print("PASS")
#check for ID
Subject = input("Enter the Subject name = ")
if (Subject == "DBMS"):
print("DBMS = ",a)
elif (Subject == "C++"):
print("C++ = ",b)
elif (Subject == "Aptitude"):
print("Aptitude = ",c)
elif (Subject == "Web Development"):
print(" Web Development = ",d)
elif (Subject == "DSA"):
print("DSA = ",c)
else:
print("Not valid")
ID = (input("Enter the ID = "))
if(ID == "57YS2"):
print("ID FOUND")
else :
print("ID NOT FOUND")
'''
import camelcase
c = camelcase.CamelCase()
me = "something did happens"
print(c.hump(me))
from slugify import slugify
me = "something important"
slug = slugify(me)
print("slug")
'''