Kyle Anderson
In this section of the assignment, we will demonstrate the following concepts:
Addition
Subtraction
Multiplication
Division
Exponentiation
print(7 + 2)
print(7 - 2)
print(7 * 2)
print(7 / 2)
print(7 ** 2)
In this section of the assignment, we will demonstrate the following concepts:
Creating variables
Printing the value of variables
Operations with variables
Nonlinear execution in notebooks
x = 91
x = 42
print(x)
y = 7
print(y)
print(x/y)
In this section of the assignment, we will demonstrate the following concepts:
Writing comments
Using comments to document code
Using comments to disable lines of code
# This is a comment print(2 + 5)
# In this cell, we will calculte sales revenue. sales = 173 # Monththly widget sales price = 16.98 # Price per widget revenue = sales * price # Monthly revenue print(revenue)
print(12 / 6) # print(12 / 0) print(12 / 4)
In this section of the assignment, we will demonstate the following concepts:
Creating strings
Storing strings in variables
Printing multiple items
print("Hello, world!")
name = "Robbie Beane" print(name)
print("Hello, my name is", name)
print("Hell, my name is ", name, ".", sep="")