How to Create An Indian Kirana Store Calculator & Receipt Generator In Basic Python?

In this tutorial, we are going to learn how to create a store calculator and receipt generator using python.  
We are going to be using Pycharm IDE for this project. So we have to create an application which will take input from the user and add it until the user presses his enter key and then display the total price. Watch the video for better understanding of this project. 

This is a basic application whih can be used in stores to calculate and generate bill. This application will keep store the numbers user has put and will add them until the user presses "q" on their keyboard. Then the application will print the result as a bill. 

sum = 0
while (True):
	userInput = input("Enter the item price or press q to quit: \n")
	if (userInput!='q'):
		sum = sum + int(userInput)
		print(f"Order total so far: {sum}")
	else:
		print(f"Your Bill total is {sum}. Thanks for shopping with us")
		break

Comments(3)

rishdev14 5 months, 1 week ago
This playlist is awesome!
zaid123 4 months, 3 weeks ago
wow, this is awesome
kalpesh46 3 months ago
Where is a Receipt Generator code?

Resources

No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here