- This event has passed.
2 PM – Intro To Python
July 26, 2020 @ 2:00 pm - 3:00 pm
- We learned about IF ELSE statements.
- Homework:
- You need to check last week homework or the exercise we did in the class to do this homework:
- Create your homework in this new file July26_IFELSEHomework2.py:
- First homework:
- Create a new variable “movie” set value to “toy story”.
- Create an IF ELSE statement that would check if the value of “movie” is equal to “toy story” it would print, “This is a very funny movie”. Otherwise, it will print “This is not a funny movie.”
- Second homework:
- Create a new variable “grade” set value to 50.
- Create an IF ELIF ELSE statements that would do the following
- if “grade” variable is < 60, then print “That is a really bad grade”.
- Else If “grade” variable is < 70, then print “That is a bad grade.”
- Else if “grade” variable is < 80, then print “That is a passing grade.”
- Else if “grade” variable is < 90, then print “That is pretty good grade”.
- else, print “That is a very good grade”.
- First homework:
- Create your homework in this new file July26_IFELSEHomework2.py:
- You need to check last week homework or the exercise we did in the class to do this homework: