+ 2
Not getting the satisfactory results , please help
3 odpowiedzi
+ 4
If your input is 200+100 you call the function 7 times and get a return value once.
And 6 times none.
This code would work:
inp = input()
def split(char,inp):
for i in inp:
if i ==char:
return inp.split(char)
print ( split("+", inp))
+ 1
check this.
https://code.sololearn.com/cNyX8qRnB4qY/?ref=app
0
oops I was trying taking the for loop outside , thanks sir ,it really helped me