-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask2.py
28 lines (28 loc) · 820 Bytes
/
task2.py
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
print("Program is to check the Student examination")
print(" Enter the Name of the name of the Student")
name = input()
print(" Enter the Age of the Student")
age = int(input())
print("Enter the Mark of Science")
science=float(input())
print("Enter the Mark of Maths")
maths=float(input())
print("Enter the Mark of English")
eng=float(input())
print("Enter the Mark of language")
lang=float(input())
total=(science+maths+eng+lang)
avg=total/4
if(avg > 40):
if(avg > 60):
if(avg>70):
if(avg>=80):
print(name,"Achieved firstclass with Designation")
else:
print(name,"Achived first class")
else:
print(name,"Achived Second class")
else:
print(name,"Achieved thrid class")
else:
print(name,"Didnt pass the examination")