Preparing git repo for final project
This commit is contained in:
27
problems/pset3/taqueria/taqueria.py
Normal file
27
problems/pset3/taqueria/taqueria.py
Normal file
@@ -0,0 +1,27 @@
|
||||
menu = {
|
||||
"Baja Taco": 4.00,
|
||||
"Burrito": 7.50,
|
||||
"Bowl": 8.50,
|
||||
"Nachos": 11.00,
|
||||
"Quesadilla": 8.50,
|
||||
"Super Burrito": 8.50,
|
||||
"Super Quesadilla": 9.50,
|
||||
"Taco": 3.00,
|
||||
"Tortilla Salad": 8.00
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
total = 0.0
|
||||
while True:
|
||||
try:
|
||||
dish = input("Item: :\t\t").title()
|
||||
except EOFError:
|
||||
break
|
||||
if dish in menu:
|
||||
total += menu[dish]
|
||||
print(f"Total: ${total:.2f}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Reference in New Issue
Block a user