a guest Mar 23rd, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def convert24(str2):
- if int(str2[:2]) < 12:
- return str2 + " AM"
- return str(int(str2[:2]) - 12) + str2[2:8] +" PM"
- tim = input("Enter time in 24 hour format:")
RAW Paste Data