Skip to content

Instantly share code, notes, and snippets.

@korkridake
Created December 5, 2018 11:33
Show Gist options
  • Save korkridake/7197661623e8074aa284ea91f8fbf533 to your computer and use it in GitHub Desktop.
Save korkridake/7197661623e8074aa284ea91f8fbf533 to your computer and use it in GitHub Desktop.
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