#  This is also how to print text to the screen
print "Hello world!"

#  This is how to print text to the screen using Python v3.x
print("Hello world!")

"""
Explanation: Lecture #1: iPython notebooks
End of explanation
"""


4+2        #  Addition

4-2        #  Subtraction

4/3        #  Division

4//3       # Integer Division in old style, cutting of decimals

4*2        #  Multiplication

4**2       #  Exponents (this reads 4 squared)

4%2        #  Modulo (the answer is the remainder)

5%2        #  Modulo (the answer is the remainder)

"""
Explanation: Simple formulas
End of explanation
"""


x = 3      #  x is now a variable

print(x)   #  Print the variable x to the screen

x          #  In Jupyter notebook this prints to the screen

x**2
x = x**2
#  What does this print?

print(x)
#  What is the value of x?

"""
Explanation: Variable assignments and printing
End of explanation
"""


name = 'ASTR'            #  You can use single or double quotes

name + '2600\'s'            #  Adding strings
name + "2600's"

name = name + '2600   '

#  What is the value of name?
print(name)
print(name * 2)

print(name ** 2)           #  Multiplying strings

#  What is printed?

"""
Explanation: Strings
End of explanation
"""


