Hotel reshipt

Open
#1,163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
10/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

The issue contains a standalone Python receipt-printing script but names no repository file, test, or requested change. Clarify the intended contribution with maintainers before locating an entry point or defining what completion should mean.

Written by the indexing model from the issue text.

Description

onechina = "!!ONE CHINA!!"

print("!!ONE CHINA!!".center(52))
class Address:
def init(self, name, street, city, state, pincode):
self.name = name
self.street = street
self.city = city
self.state = state
self.pincode = pincode

def display(self):
    print(f"{self.name}\n{self.street}\n{self.city}\n{self.state}\n{self.pincode}")

addr = Address("Vishnu Babalsure".center(51), "FC Road".center(51), "Pune".center(51), "Maharashtra".center(51) ,"411001".center(51))
addr.display()

ContactNo = "9503496775"
print("9503496775".center(50))

def print_line(length=50):
print("__"*length)

print_line(50)

name = "Nilesh"
print("name:", name)

print_line(50)

from datetime import datetime
cashier="biller"
print("cashier:",cashier)
billno=1
print("billno:",billno)
print(datetime.now().time())

print_line(50)

dis1={"chillichican:",350.0, "non vegntrian:",325.0}
print("item \t Qty \tprices")
def _print_line(length=50):
print("__"*length)
_print_line(80)
print("chillichican \t 1 \t 350.0")
print("non vegntrian\t 1\t 325.0")

print_line(50)
dis2={"container charge:",30.0,"CGST2.5%:",17.6,"SGST2.5%:",17.6}

print("totalQty:2\t 675.0")
print("container charge\t 30.0")
print("CGST2.5% \t 17.6")
print("SGST2.5% \t 17.6")

print_line(50)

totalgrand = 675.0 + 30.0 + 17.6 + 17.6
print("totalgrand:", totalgrand)

print_line(50)

print("THANK YOU!&Visit Again".center(70))

Dominant language
Batchfile
Stars
29.8k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from realpython/python-guide

All issues in realpython/python-guide

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.