Skip to content

Instantly share code, notes, and snippets.

View jossyboy2580's full-sized avatar

Ajobiewe Joseph jossyboy2580

View GitHub Profile
suffixes = {"1": "st", "2": "nd", "3": "rd"}
def positioner(rang, dog_position):
positions = []
for i in range(1, rang + 1):
if str(i) == str(dog_position):
continue
if str(i) in ["11", "12", "13"]:
positions.append(str(i)+ "th")
else:
'''
Python 2.7
'''
timeDict = {}
with open("input.txt", "r") as file:
lineCounter = 0
for line in file:
lineCounter += 1
if lineCounter == 1: