Skip to content

This project is mainly used to generate the receipt of any shop (or) super market. It can used in various applications such as book shop, fruit shop, super market. It is build using the simple syntax.

Notifications You must be signed in to change notification settings

saravanakumar55/Receipt-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Receipt-Generator

#This project is mainly used to generate the receipt of any shop (or) super market. It can used in various applications such as book shop, fruit shop, super market. It is build using the simple syntax.

from prettytable import PrettyTable

print('--------------WELCOME TO Happy Shop--------------\n') table = PrettyTable(['Item Name', 'Item Price']) total = 0

while (1): name = input('Enter Item name:')

# 'q' to exit and print the table
if (name != 'q'):
    price = int(input('Enter the Price:'))

    # store all the prices in 'total'
    total += price
    table.add_row([name, price])
    continue

elif (name == 'q'):
    break

table.add_row(['TOTAL', total]) print(table) print('\nThanks for shopping with us :)') print('Your total bill amount is ', total, '/-')

About

This project is mainly used to generate the receipt of any shop (or) super market. It can used in various applications such as book shop, fruit shop, super market. It is build using the simple syntax.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published