Python Conditional Execution Exercise Simpler Bottles

Опубликовано: 01 Октябрь 2024
на канале: Skytech Academy
5
1

Let's create a simpler "Miles Per Gallon" program, containing 2 possible versions in one file.

This week you are to create a simpler Miles per Gallon program. You are only to ask for the miles driven and gallons used.
If either user entry is less than zero, a message is displayed. If both are valid, the calculation is done and the results are displayed.
There are two versions that can be created; you need to create both versions. Place both in the same ".py" file and separate them by comments.