3 ms·
reasons = [ "leaves on the track", "vandalism", "drunk chavs", "driver being absolutely shitfaced", "solar flares", "transpo
by OddBloke 12y ago
reasons = [
"leaves on the track",
"vandalism",
"drunk chavs",
"driver being absolutely shitfaced",
"solar flares",
"transport police randomly deciding to stop and search everyone on board",
"you having an interview",
"a possible UFO sighting in Belgium",
"British Rail",
"lack of coffee at the previous station, so the driver has just nipped off to get some",
"leaves on the track",
"flooding within 300km of a railway sleeper"
]
delay_all_trains_by_minutes = 5
if date.today().day % 2 == 1:
delay_all_trains_by_minutes = random.randint(0, 30)
print('All trains will be delayed by {} minute(s) due to {}'.format(
delay_all_trains_by_minutes, random.choice(reasons))
- ntoll 12y agoWay to go OddBloke :-)