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

4th Jan 2019, 2:45 AM
Porkuzhali Pk
Porkuzhali Pk - avatar
2 Respuestas
+ 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())
4th Jan 2019, 3:52 AM
E_E Mopho
E_E Mopho - avatar
+ 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)"
4th Jan 2019, 5:35 AM
Anna
Anna - avatar