forked from Ronit049/python-Learning-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01_first.py
More file actions
35 lines (35 loc) · 1.49 KB
/
01_first.py
File metadata and controls
35 lines (35 loc) · 1.49 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
# # print("hello world")
# print("Ronit")
#------------------------------------------------------------------------------------------------
# a = int(input("Enter the number : "))
# if(a>20):
# print("Number is greater than 20")
# elif(a == 20):
# print("Number is 20")
# else:
# print("number is lesser")
#------------------------------------------------------------------------------------------------
# num1 = int(input("Enter the first number : "))
# num2 = int(input("Enter the second number : "))
# num3 = int(input("Enter the third number : "))
# num4 = int(input("Enter the third number : "))
# if(num1>num2 and num1>num3 and num1>num4):
# print("The largest number is ",num1)
# elif(num2>num1 and num2>num3 and num2>num4):
# print("The largest number is ", num2)
# elif(num3>num1 and num3>num2 and num3>num4):
# print("The largest number is ", num3)
# else:
# print("The largest number is ", num4)
#------------------------------------------------------------------------------------------------
maths = int(input("Enter the number in maths : "))
dsa = int(input("Enter the number in DSA : "))
oops = int(input("Enter the number in OOPS : "))
dcca = int(input("Enter the number in DCCA : "))
toc = int(input("Enter the number in TOC : "))
total_percentage = (maths+dsa+oops+dcca+toc)/5
if(total_percentage >= 40):
print("PASS")
else:
print("FAIL")
#------------------------------------------------------------------------------------------------