+ 9

Problem!!!

x = input() if "AM" in x: x = x.replace("AM", "") if "2:" in x: x = x.replace("2:", "02:") if "3:" in x: x = x.replace("3:", "03:") if "4:" in x: x = x.replace("4:", "04:") if "5:" in x: x = x.replace("5:", "05:") if "6:" in x: x = x.replace("6:", "06:") if "7:" in x: x = x.replace("7:", "07:") if "8:" in x: x = x.replace("8:", "08:") if "9:" in x: x = x.replace("9:", "09:") if "10:" in x: x = x.replace("10:", "10:") elif "0:" in x: x = x.replace("0:", "00:") if "11:" in x: x = x.replace("11:", "11:") elif "1:" in x: x = x.replace("1:", "01:") if "PM" in x: x = x.replace("PM", "") if "02:" in x: x = x.replace("02:", "14:") elif "2:" in x: x = x.replace("2:", "14:") if "03:" in x: x = x.replace("03:", "15:") elif "3:" in x: x = x.replac https://www.sololearn.com/coach/70?ref=app 4th test are wrong

12th Jan 2021, 11:05 AM
Sunshine🌟
11 Answers
+ 4
$♡f¡ At your first condition (AM), I think there has to be >> if "12:" in x << because there is 12:00 AM So for example, 12:43 AM --> 00:43
12th Jan 2021, 2:21 PM
noteve
noteve - avatar
+ 4
Ok tnx
13th Jan 2021, 5:46 PM
Sunshine🌟
+ 3
Can you say me what you do I don't understand Manash Saikia
12th Jan 2021, 11:13 AM
Sunshine🌟
+ 3
[Solved] $♡fÂĄ check out it Easiest way For more u have to check python lessonsđŸ‘đŸ» https://code.sololearn.com/cEG1HrG5Hm3H/?ref=app
13th Jan 2021, 5:32 PM
Mr. Rahul
Mr. Rahul - avatar
+ 3
I done it but can you say what you do in code I don't understand😂 Mr. Rahul
13th Jan 2021, 5:33 PM
Sunshine🌟
+ 3
Ok wait i will provide u the main topicâ˜ș
13th Jan 2021, 5:33 PM
Mr. Rahul
Mr. Rahul - avatar
+ 3
$♡f¡ See this & try to understand It might be easiest way To solve above https://code.sololearn.com/cZ5ykehvD8zz/?ref=app
13th Jan 2021, 5:41 PM
Mr. Rahul
Mr. Rahul - avatar
+ 3
Kode Krasher : ) You have played well with my code
13th Jan 2021, 5:59 PM
Mr. Rahul
Mr. Rahul - avatar
12th Jan 2021, 11:11 AM
Manash Saikia [ 45% Active ]
Manash Saikia [ 45% Active ] - avatar