def chicagoHour(parisHour: int) -> int: """Return the Chicago hour (12h time) given the Paris hour (24h time).""" chicagoHour = parisHour + 5 twelveHour = chicagoHour % 12 return 12 if twelveHour == 0 else twelveHour print("Testing chicagoHour()...", end="") assert chicagoHour(0) == 5 assert chicagoHour(3) == 8 assert chicagoHour(7) == 12 assert chicagoHour(8) == 1 assert chicagoHour(12) == 5 assert chicagoHour(15) == 8 assert chicagoHour(19) == 12 assert chicagoHour(20) == 1 assert chicagoHour(23) == 4 print("Passed!")