Hello everyone! Wanted to apologize for all of the technical difficulties that occurred today that caused some delays and halts during class. Here are the resources we went over, the recordings will be sent via email!
Homework:
Giver 3 examples of each data type (2 for Boolean)
Create the variables name, grade, color, and another variable for something you like. Use f-strings/concatenation to print the following string but with your information.
Shravya is in 11th grade, and her favorite color is blue.
Shravya's favorite movie is Thor: Ragnarok.
Resources:
Class slides: https://docs.google.com/presentation/d/1sEZUlUHfWHJThTd8MP667DqFoJxvlKXwJfRNZZHwkoA/edit?usp=sharing
Class code: https://replit.com/@arnavpandey722/IntroToPython-Wk1Day1?v=1
Contact info:
shravyassathish@gmail.comĀ (mentor)
mailtoarnavpandey@gmail.com (TA) Make sure to "Add a comment" with your code to the homework in order to submit your homework assignment!
#1:
str0 = "Fountain Pen" str1 = "Ball-point Pen" str2 = "Ultra-fine tip Pen" int0 = 72 int1 = -17 int2 = 293 float0 = 23.92 float1 = -0.24 float2 = 982.212 bool0 = True bool1 = False
#2 (f-strings):
name = "Eugene" grade = 6 fav_clr = "black" print(f"{name} is in {grade}th grade, and his favorite color is {fav_clr}.")
#2 (concatenation):
name = "Eugene" grade = "6"
#notice that grade is a string when using concatenation because you cannot join
#a string with an integer fav_clr = "black" print(name + " is in " + grade + "th grade, and his favorite color is " + fav_clr)