Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ book
Method
book
Chapter 10 - PS/06_problem6.py:8–9 ·
view source on GitHub ↗
(harry, fro, to)
Source
from the content-addressed store, hash-verified
6
slf.trainNo = trainNo
7
8
def
book(harry, fro, to):
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"
)
Callers
1
06_problem6.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected