hello what's up guys how are you all today in this post I am going to give you the source code of my video called Bill generator using python so let's begin with this awesome post:
# BIll Generator
# prints the name of things in a list and tells the total rate
cond = True
rate = 0
print("Enter quit at any time to quit!")
things_list = []
while cond:
thing = input("Enter the name of the goods you want buy:");
if thing.lower() == "quit":
cond = False
else:
main = int(input("Enter the Rate of the goods:"))
rate = main+rate
things_list.append(thing)
pass
print("the total things are:",things_list)
print("The total rate is",rate)
I hope that you liked this post.
Don't forget to like, share and subscribe to this video and also share this post
Thank You.
Comments
Post a Comment