I’m new to programming and I was trying out this question on Pyschools.
Can anyone help me?
Write a function that converts the time to 24hr format.
Examples
>>> time24hr('12:34am')
'0034hr'
>>> time24hr('12:15pm')
'1215hr'
This question is under conditionals.
1 Answer