-
Notifications
You must be signed in to change notification settings - Fork 0
/
task1.py
147 lines (131 loc) · 2.85 KB
/
task1.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
'''
a = 5
b = 4
if a == b:
print('1')
elif a>b:
print('2')
else:
print('3')
'''
'''
a = 'pari'
b = 'besh'
c = 'koju'
d = 'koju'
if a == b and c == d:
print('Hello')
else:
print("invalid entry")
'''
'''
a = 'mobile'
b = 'laptop'
c = 'earpod'
d = 'earpod'
if a == b or c == d:
print('Hello')
else:
print('Does not exist')
'''
'''
x = 23
if x > 0:
print('True')
elif x < 0:
print('False')
else:
print('Zero')
'''
'''
x = int(input('Enter the number:\n'))
if x % 2 == 0:
print('It is even number')
else:
print('It is odd number')
'''
'''
print('Enter the marks of four Subject:\n')
Maths = float(input('Enter the marks of Maths:\n'))
Science = float(input('Enter the marks of science:\n'))
Social = float(input('Enter the marks of social:\n'))
English = float(input('Enter the marks of english:\n'))
WAP = Maths + Science + Social + English
Percentage = ( WAP / 400 ) * 100
if Percentage >= 70:
print('\tDistinction')
Grade = 'A'
elif Percentage >= 60:
print('\tfirst division')
Grade = 'B'
elif Percentage >= 40:
print('\tPass')
Grade = 'C'
else:
print('\tFail')
Grade = 'E'
print('\nThe WAP Marks is:\t', WAP)
print('\nThe Percentage is:\t', Percentage)
print('\nThe Grade is:\t', Grade)
'''
'''
# What is the output of 'APPLE' > 'apple'??
print('APPLE'>'apple')
#False
'''
'''
print("\t\t\tPersonal details")
name = 'Paribesh koju'
age = 19
address = 'suryabinayak,bhaktapur'
print(name)
print(age)
print(address)
'''
'''
PI = 22/7
r = float(input('Enter the radius of the circle:(in m)\n '))
Area = PI * (r**r)
#print(f'The area of circle is {Area} m²')
print('The area of circle: \n %.2f' %Area, 'm²'
'''
'''
a = int(input('Enter the no of students in class a:\n'))
b = int(input('Enter the no of students in class b:\n'))
c = int(input('Enter the no of students in class c:\n'))
print('The possible no of desk that can be purchase is:')
print(a//2 + b//2 + c//2 + a%2 + b%2 + c%2) #snakify theorem
# '//' means floor division helps to find out the no of desk
# '%' means modulus helps to find out the reminder
# the final result of this code is find out the exact no of desk
'''
'''
x = int(input('Enter the number:\n'))
y = int(input('Enter the number:\n'))
z = int(input('Enter the number:\n'))
if x >= y <= z:
print(y)
elif y >= x <= z:
print(x)
else:
print(z)
'''
'''
m = int(input('Enter the number:\n'))
n = int(input('Enter the number:\n'))
o = int(input('Enter the number:\n'))
print(m + n + o)
'''
'''
x = int(input('Enter the hight of right angled tringle:\n'))
y = int(input('Enter the lenght of base:\n'))
print(x * y /2)
'''
'''
N = int(input('Number of students:\n'))
K = int(input('Number of Apples:\n'))
print(K // N)
# print(K // N) represent the no of apples got by the single students
print(K % N)
# print(K % N) represent the no of apples remain in the basket
'''