Įkeliama užduotis…
Schedules and logs are often easier to read in 24-hour time, because there is no confusion between morning and evening hours. The function time_conversion receives a string s in the format hh:mm:ssAM or hh:mm:ssPM. Return the same time in HH:MM:SS format, handling the special cases: 12AM becomes 00, and 12PM stays 12.
"07:05:45PM""19:05:45""12:00:00AM""00:00:00""12:00:00PM""12:00:00"def time_conversion(s: str) -> str:
Prisijunkite, kad matytumėte pateikimų istoriją
PrisijungtiPrisijunkite, kad naudotumėte DI mentorių
PrisijungtiThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.