Skip to content

Commit 3275d39

Browse files
added Challenge5
1 parent 548ce27 commit 3275d39

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import sys
2+
3+
def check(a,b,c):
4+
if(b== "=="):
5+
if(a==c):
6+
return 1
7+
else:
8+
return 0
9+
elif(b=="<="):
10+
if(a==c or a<c):
11+
return 1
12+
else:
13+
return 0
14+
elif(b==">="):
15+
if(a==c or a>c):
16+
return 1
17+
else:
18+
return 0
19+
20+
m=sys.stdin.read().splitlines()
21+
for i in m:
22+
a,b,c = i.split()
23+
d=check(a,b,c)
24+
print(d,end="\n")

0 commit comments

Comments
 (0)