Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ getFare
Method
getFare
Chapter 10 - PS/05_problem5.py:14–15 ·
view source on GitHub ↗
(self, fro, to)
Source
from the content-addressed store, hash-verified
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)}"
)
16
17
18
t = Train(12399)
Callers
1
05_problem5.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected