Skip to content

Commit 9399333

Browse files
Update Input.py
More readable and compact code added as per suggestion.
1 parent c471ae0 commit 9399333

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

BuiltIns/Input.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,5 @@
1010

1111
if __name__ == "__main__":
1212
x, k = map(int, input().strip().split())
13-
string = input().strip()
14-
15-
if eval(string) == k:
16-
print(True)
17-
else:
18-
print(False)
13+
equation = input().strip()
14+
print(eval(equation) == k)

0 commit comments

Comments
 (0)