Math in Python
In Python, mathematical operations can be performed by directly specifying a mathematical statement. If you're using any variables in the calculation, make sure to initialize them beforehand.
These values can also be saved in further variables, which is also shown in the codeblock below.
xxxxxxxxxx13
var a = 20;var b = 10;console.log(a + b); // prints 30console.log(a - b); // prints 10console.log(a * b); // prints 200// You can also save these values in further variables, such as:var a = 20;var b = 10;var c = a + b;console.log(c); // prints 30OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment



