def fahr_to_celsius (temp):
return ((temp - 32)) * (5/9))
# Create Functions
def add_numbers (a,b):
Add two numbers together
Returns
the sum: type of arguments
return a + b
num = add_numbers (5,7)
num
# integer
a = 100
print (a)
type (a)
# float
b = 100.7
b
# Complex
c = 100+200j
c
d = 300 + 500j
d
e = c + d
e
type(e)
List
a = [4,6,4,3,5]
a
a[3]
b = ['Physics', 'Chemistry', 91, 100]
b
b[-1]
b
91 in b
a = (1,2,3,4,5)
a
b = (3,5,6)
b
a + b
a*2
a*3
capitals = {'France': 'Paris', 'Germany': 'Berlin', 'Italy': 'Rome'}
capitals
capitals.update(capitals2)
capitals