Welcome to your first lesson. The way this works is easy. Type in the program, run it, see what happens and analyze the results.
Look at each line of code and compare it to the output.
Analyze it by asking answering the following questions:
Program Explanation:
#Lesson 1
print ('Welcome to my first program')
w = ('blah')this is makes a variable called w equal to the word "blah"
x = ('stuff')
y = 1
z = 2
print (x,y,z)
print (y + z)
print (1 + 2)
print (w + x)
String Literals
These are things you can do to format what you print. You basically put a \ and a letter matching the effect you want. Try the program below. A summary of string literals is also listed here:
Basic Math Functions:
Assignment #1
Make a program in Python that does the following:
If you have any questions about specifics...ASK!
If you think you can use the print statement without using any variables to complete any part of this assignment, you are WRONG!
Submit your assignment in the standard link below.