Created
April 6, 2011 10:53
-
-
Save samwho/905466 to your computer and use it in GitHub Desktop.
Some basic arithmetic in Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 + 2 # addition, returns 4 | |
4 - 1 # subtraction, returns 3 | |
5 * 5 # multiplication, returns 25 | |
2 ** 3 # 2 to the power of 3, returns 8 | |
10 / 2 # division, returns 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment