My issue
My code
# cook your dish her
a = −50
b = 40
total = a + b
product = a * b
print(total, product)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
# cook your dish her
a = −50
b = 40
total = a + b
product = a * b
print(total, product)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
The code is correct, just that there’s a UNICODE character mismatch with the minus symbol causing you an error. Please copy paste and try the code below to solve.
a = -50
b = 40
total = a + b
product = a * b
print(total, product)