+ 2
Thanks for answering
num1 = int(input ()) # введите первое число num2 = int(input ()) # введите второе число print (f"\n{num1 } + {num2 } = {num1 + num2 }") print (f"{num1 } * {num2 } = {num1 * num2 }")
4 Answers
+ 6
алан шерп , when you like to calculate with the inputs, it is like this:
num1 = int(input())
num2 = int(input())
print(f"{num1} + {num2} = {num1 + num2}")
# output will be:
5 + 2 = 7
+ 3
print("{}+{}={}".format(a,b,c))
+ 2
a="2"
b="3"
c="5"
print(f"{a}+{b}={c}")
+ 2
a = 2
b = 3
c= a + b
print(f"{a}+{b}={c}")