Created
December 5, 2018 11:33
-
-
Save korkridake/7197661623e8074aa284ea91f8fbf533 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| print(3*4) | |
| p=22/7 # number (integer, float) | |
| print(p) | |
| P=45 | |
| print(P) | |
| m1 = "pikachu" # string | |
| m2 = 'rhydon' | |
| isAdult = True # boolean | |
| print(m1) | |
| print(m1 + " vs. " + m2) | |
| # w = int(input("width = ")) # string '5' "5" | |
| # h = int(input("height = ")) # "3" | |
| # print(w * h) | |
| # print(5 * 3) | |
| # dynamic typing | |
| w = input("width = ") | |
| print(type(w)) | |
| a = 5 | |
| print(a) | |
| print(type(a)) # integer | |
| b = 5.0 | |
| print(b) | |
| print(type(b)) | |
| c = 1/3 | |
| print(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment