6 Answers
+ 3
There are many errors in your code.
You can do this:
a = int(input())
b = int(input())
print(a+b)
Same for multiplication.
printf is for formatting your output:
print(f'result = {a+b}')
or multiline:
print(f'''result of addition: {a+b}
result of multiplication: {a*b}''')
+ 2
you are not taking input. for input, use the input() function.
functions have (), not {}.
and you are using strings just everywhere instead of numbers or variables.
+ 1
add to what???
ask your questions here.
0
Run this
0
n1 =("a+b")
n2 =("enter any number for addition")
n3 =("a*b")
n4 =("enter any number for multiplication")
check ={"n2 & n4 "}
answer = ("check")
print {f"check"}
0
Is not working