Edit typos and grammar and add python files
This commit is contained in:
parent
c1222a8103
commit
991caf0521
16 changed files with 285 additions and 3 deletions
13
thinkcspy/Chapter-2-Exercises/Python-Files/problem10.py
Normal file
13
thinkcspy/Chapter-2-Exercises/Python-Files/problem10.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 2
|
||||
# Problem 10
|
||||
|
||||
miles = input('How many miles did you drive before refueling?')
|
||||
mi = int(miles)
|
||||
|
||||
gallons = input('How many gallons did you use to refuel your vehicle?')
|
||||
gal = int(gallons)
|
||||
|
||||
mpg = mi / gal
|
||||
|
||||
print('Your fuel efficiency is', mpg, 'MPG.')
|
||||
Loading…
Reference in a new issue