Skip to content

Commit 126e57a

Browse files
Create food.py
nice
1 parent 00c34c0 commit 126e57a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

food.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
food = "pizza"
2+
price = 8.99
3+
num_of_food = int(input(f"How many {food}s?: "))
4+
total = num_of_food * price
5+
6+
print(f"Your total is ${total}")

0 commit comments

Comments
 (0)