0
Find out error to run this program: Sum two number without using plus
def sum_without_oper (): a=int(input()) b=int(input()) c=[] c.append(a,b) result=sum(c) return result
2 Answers
+ 4
def sum_without_oper ():
a=int(input())
b=int(input())
c=[]
c.append(a)
c.append(b)
result=sum(c)
return result
print(sum_without_oper())
+ 4
Usually it's quite helpful to read what the interpreter says if you try to run the code đ€
IndentationError in line 2: "expected an indented block"
TypeError in line 5: "append() takes exactly one argument (2 given)"