RESOURCES:
Class slides: https://docs.google.com/presentation/d/1kY_YhPN9f8OI-mVB-gzk6ukoakYycvhzds_2g96ofIk/edit?usp=sharing
Code from class: https://replit.com/@ShravyaS/IntroToPython-Wk1Day2
Coding platform: replit.com
HOMEWORK:
Write a program that takes two inputs and stores them in variables feet and inches. Print output of their height in only inches. (12 inches = 1 foot)
Using the six comparison operators and three logical operators, write two expressions that are true and two expressions that are false.
Post your answers as a comment! Solutions will be posted later (we'll also go over it next class).
Feel free to email shravyassathish@gmail.com (mentor) or kingericwu@gmail.com (TA) if you're stuck or have questions! See you :)
#1
feet = input("Please enter the length: ")
inches = input("Please enter the number of inches: ")
total = 12*int(feet) + int(inches)
print("The total number of inches is " + str(total))
#2
True: 10 > 8 L < o
False: 2 == 18 5 >= 4