03Python Programming
Arithmetic
Easy10MIN
Snake Mathematics!
In Python code, you can easily perform calculations. Let's print the sum of the arithmetic operation 3+3 as an example.
PY
1print(3+3)
2
36Or, let's create a variable sum, whose value is the sum of the calculation 3+3.
PY
1sum = 3+3
2print(sum)
3
461 / 7
Hakatemia Pro
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.