+ 2

Thanks for answering

num1 = int(input ()) # введите первое число num2 = int(input ()) # введите второе число print (f"\n{num1 } + {num2 } = {num1 + num2 }") print (f"{num1 } * {num2 } = {num1 * num2 }")

28th Oct 2020, 11:09 AM
алан шерп
алан шерп - avatar
4 Respostas
+ 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
28th Oct 2020, 11:55 AM
Lothar
Lothar - avatar
+ 3
print("{}+{}={}".format(a,b,c))
28th Oct 2020, 11:24 AM
Olivia
Olivia - avatar
+ 2
a="2" b="3" c="5" print(f"{a}+{b}={c}")
28th Oct 2020, 11:34 AM
Shadoff
Shadoff - avatar
+ 2
a = 2 b = 3 c= a + b print(f"{a}+{b}={c}")
28th Oct 2020, 4:19 PM
Shadoff
Shadoff - avatar