Код: Выделить всё
def multiplication_or_sum(num1, num2):
# calculate product of two number
product = num1 * num2
# check if product is less then 1000
if product
Подробнее здесь: [url]https://stackoverflow.com/questions/79308007/what-is-syntax-error-in-this-python-code[/url]