print('Hello!')
Hello!
print('watch for the cat')
watch for the cat
print("Braeden")
Braeden
# [ ] print your name
print("Braeden")
# [ ] print "is using Python"
print("is using Python")
Braeden
is using Python
# [ ] create a variable your_name and assign it a string containing your name
str("your_name")
#[ ] print your_name
print("Braeden")
Braeden
# [ ] create variables and assign values for: favorite_song, shoe_size, lucky_number
str("favorite_song")
str("shoe_size")
str("lucky_number")
# [ ] print the value of each variable favorite_song, shoe_size, and lucky_number
print("Take Care")
print("10")
print("6")
Take Care
10
6
# [ ] print favorite_song with description
# my favorite song is take care by beach house
print("Take care")
# [ ] print shoe_size with description
# my shoe size is 10
print("10")
# [ ] print lucky_number with description
# my lucky number is 6
print("6")
Take care
10
6
# assign favorite_lucky_shoe using
str("take care, 10, 6")
# [ ] print a diagonal using "*"
print("*")
print(" *")
print(" *")
print(" *")
print(" *")
# [ ] rectangle using "*"
print("************")
print("* *")
print("* *")
print("************")
# [ ] smiley using "*"
print(" * * ")
print("")
print(" * * ")
print(" ****** ")
*
*
*
*
*
************
* *
* *
************
* *
* *
******
# [ ] display the type of 'your name' (use single quotes)
print('Braeden')
Braeden
# [ ] display the type of "save your notebook!" (use double quotes)
print('save you notebook.')
save you notebook.
# [ ] display the type of "25" (use quotes)
print("25")
25
# [ ] display the type of "save your notebook " + 'your name'
print("Save your notebook")
print("Braeden")
Save your notebook
Braeden
# [ ] display the type of 25 (no quotes)
print(25)
25
# [ ] display the type of 25 + 10
print(20+10)
30
# [ ] display the type of 1.55
print(1.55)
1.55
# [ ] display the type of 1.55 + 25
print(1.55+25)
26.55
# assignments ***RUN THIS CELL*** before starting the section
student_name = "Darius"
student_age = 16
student_grade = 96.5
student_id = 123456
# [ ] display the current type of the variable student_name
print("Darius")
Darius
# [ ] display the type of student_age
print("16")
16
# [ ] display the type of student_grade
print("96.5")
96.5
# [ ] display the type of student_age + student_grade
print("16")
print("96.5")
16
96.5
# [ ] display the current type of student_id
print("123456")
123456
# assign new value to student_id
print(128907)
# [ ] display the current of student_id
print(123456)
128907
123456
# [ ] create integer variables (x, y, z) and assign them 1-3 digit integers (no decimals - no quotes)
print("x, 1")
print("y, 2")
print("z, 3")
x, 1
y, 2
z, 3
print("xyz_sum")
print("x, 1")
print("y, 2")
print("z, 3")
xyz_sum
x, 1
y, 2
z, 3
# [ ] fix the error
# just git rid of the extra quotes
print("Hello World!")
Hello World!
# [ ] fix the error
#put quotes infront of the strings and the back of name
print("strings have quotes and variables have names")
strings have quotes and variables have names
# [ ] fix the error
#get rid of the quot at the $ sign and put it at the end of 5
print("I have $ + 5")
I have $ + 5
# [ ] fix the error
#get rid of the single quote at always amd put a dubble quote
print("always save the notebook")
always save the notebook
# [ ] ASCII ART
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print()
print("* *")
print("* *")
print("* *")
print("* *")
print()
print(" *****")
print(" *")
print(" *")
print("*")
print("*")
print("*")
print(" *")
print(" *")
print(" ****")
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
*****
*
*
*
*
*
*
*
****
# [ ] ASCII ART
print(" * * ")
print("")
print(" * * ")
print(" ****** ")
* *
* *
******