How do you do numeric-operations with variables? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
- 1

How do you do numeric-operations with variables?

Such as num1+num2*num3

29th Mar 2017, 5:00 PM
Maria Nachiu
Maria Nachiu - avatar
10 Respuestas
+ 1
print(num1+num2*num3) or put it in a variable: x=num1+num2*num3 print(x)
29th Mar 2017, 5:19 PM
ngaihte
ngaihte - avatar
0
yes?
29th Mar 2017, 5:01 PM
Meharban Singh
Meharban Singh - avatar
0
Okay thank you
29th Mar 2017, 5:04 PM
Maria Nachiu
Maria Nachiu - avatar
0
if no parentesis ,you must do * first follow by +
30th Dec 2019, 3:10 AM
Cyrus Li
0
dunno
11th Mar 2020, 1:28 AM
Ambern Meraz
Ambern Meraz - avatar
0
–ü–ĺ–ľ–ĺ–≥–ł—ā–Ķ –ü–Ľ–ł—Ā
5th Apr 2020, 3:49 PM
Berdibek uulu Beksultan
0
–ě–Ī—ä—Ź—Ā–Ĺ–ł—ā–Ķ 2**5 —Ź –Ĺ–Ķ –Ņ–ĺ–Ĺ—Ź–Ľ —ć—ā–ĺ python
5th Apr 2020, 3:50 PM
Berdibek uulu Beksultan
0
–ė–ľ–Ķ–Ķ—ā—Ā—Ź ,—á—ā–ĺ —ć—ā–ĺ 2 –≤ 5 —Ā—ā–Ķ–Ņ–Ķ–Ĺ–ł (2*2*2*2*2)=32
18th Apr 2020, 10:51 AM
Kira
0
Print (1+2*3)
9th Feb 2021, 6:38 AM
Vaishali Singh
Vaishali Singh - avatar
- 1
Do ( num1 + num2 ) *number3
29th Mar 2017, 5:03 PM
Rozzon Adam
Rozzon Adam - avatar