This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Homework Lesson 4 - Conditionals | |
| from lesson_2.homework import ticket_price | |
| # READ CAREFULLY THE EXERCISE DESCRIPTION AND SOLVE IT RIGHT AFTER IT | |
| # --------------------------------------------------------------------- | |
| # Exercise 1: Temperature Classification | |
| # You're developing a weather application. Write a program that takes | |
| # a temperature in Fahrenheit as input. If the temperature is above | |
| # 85°F, print "Hot day ahead!". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Homework Lesson 3 - Strings | |
| # READ CAREFULLY THE EXERCISE DESCRIPTION AND SOLVE IT RIGHT AFTER IT | |
| # --------------------------------------------------------------------- | |
| # Exercise 1: Personalized Greeting | |
| # Write a program that takes a user's name as input | |
| # and then greets them using an f-string: "Hello, [name]!" | |
| # | |
| # Example Input: "Alice" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Homework Lesson 2 - Numbers - Homework | |
| from math import remainder | |
| # READ CAREFULLY THE EXERCISE DESCRIPTION AND SOLVE IT RIGHT AFTER IT | |
| # --------------------------------------------------------------------- | |
| # Exercise 0 - This exercise is solved so you can have an ---------- | |
| # example of how we are expecting your answers to be. | |
| # | |
| # You are shopping online and found two items with prices $5.99 |