Mark As Completed Discussion

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.

JAVASCRIPT
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment