MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-Python-Course / getStatus

Method getStatus

Chapter 10 - PS/06_problem6.py:11–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 print(f"Ticket is booked in train no: {harry.trainNo} from {fro} to {to}")
10
11 def getStatus(self):
12 print(f"Train no: {self.trainNo} is running on time")
13
14 def getFare(self, fro, to):
15 print(f"Ticket fare in train no: {self.trainNo} from {fro} to {to} is {randint(222, 5555)}")

Callers 1

06_problem6.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected