List
timing = [“3:00 PM”, “3:10”, “Monday”]
For Loop
for i, timer in enumerate(timing):
Trying to split only 3:00 PM from list
if " " in timing[i]:
hr1, term = timing[i].split(":")
min1, ender = term.split(" ") # This is OK
Trying to split only 3:00 from list
if " " not in timing[i]: #This line is selecting both second and third terms. The result must be second only
hr2, min2 = timing[i].split(":")
Trying to split Monday from list
if “:” not in timer[i]: # This is OK
day = timing[i]