0
Can someone tell why test case 4 and 5 are not happy with my code
https://sololearn.com/coach/68/?ref=app https://code.sololearn.com/cvMhxvaxcOLH/?ref=app
4 Answers
+ 3
"An expression can include multiple operations."
Ex: (5+4-1) will not supported by your code.
+ 5
chess doctor ,
the task description says:
> An expression can include multiple operations.
+ 1
Multiple . operations are not mentioned in the problem statement. Anyway i ll take that into account and try
0
x = int(input())
a = input()
l = a. split()
for i in range(len(l)):
if eval(l[i]) == x:
print("index",i)
break
else:
print("none")
#Look how I have done this! Just take a glance