You are viewing a single comment's thread. Return to all comments →
"Explicit is better than implicit." -- Zen of Python
By explicitly checking for "AM" as well, we know that t12 has those two possible values.
I agree putting braces around the body of the if statements are necessary to avoid mistakes.
if
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
By explicitly checking for "AM" as well, we know that t12 has those two possible values.
I agree putting braces around the body of the
if
statements are necessary to avoid mistakes.