- 1

It's cheating but I have a problem. Please tell me why?

https://code.sololearn.com/cejlU0MN7GXC/?ref=app

18th May 2020, 12:50 AM
Neeraj Agarwal
Neeraj Agarwal - avatar
24 Respostas
+ 2
Really slappy 😕😕😕 😒😒😒??? u going to hack fb with html ??? no way
19th May 2020, 4:51 PM
『 〖 PRAISE 〗 』
『 〖 PRAISE 〗 』 - avatar
18th May 2020, 1:04 AM
ycsvenom
ycsvenom - avatar
+ 1
Other problem, the ouput should be XX:XX but if the input is X:XX the output is X:XX
18th May 2020, 4:13 AM
4lx
4lx - avatar
+ 1
Ignore this
18th May 2020, 4:16 AM
4lx
4lx - avatar
+ 1
Lol
18th May 2020, 4:16 AM
4lx
4lx - avatar
+ 1
I was splifying the code and i accidentally deleted that part lol
18th May 2020, 4:17 AM
4lx
4lx - avatar
18th May 2020, 4:22 AM
4lx
4lx - avatar
+ 1
You can learn from this code 👇👇 a=input() b=a.replace("AM","").replace ("PM","") ans="" if a[-2:]=="PM": if b[1]==":": ans=str(int(b[0])+12)+b[1:] elif b[0:2]== "12": ans="12"+b[2:] else: ans=str(int(b[0:2])+12)+b[2:] else: if b[1]==":": ans="0"+b[0:] elif b[0:2]=="12": ans="00"+b[2:] else: ans=b print(ans)
19th May 2020, 3:23 AM
Sâñtôsh
Sâñtôsh - avatar
+ 1
Check it out : →↓↓↓↓↓ time_int=input() q = int(time_int [0]) w = time_int [1] e = time_int [2] r = time_int [3] t = time_int [4] if time_int [6]=="A": q=str( time_int [0]) print (q+w+e+r+t) elif time_int [6]=="P": w = int(time_int [1]) q=q+1 w=w+2 q1=str(q) w1 =str(w) print (q1+w1+e+r+t) z="0" g= int(time_int [0]) if time_int [5]=="A": z="0" q=str( time_int [0]) print (z+q+w+e+r) elif time_int [5]=="P": if g >= 1: l=int(z) l+=1 y=int(q) y+=2 u=str(l) i=str(y) print (u+i+w+e+r) #_______end________
19th May 2020, 2:44 PM
『 〖 PRAISE 〗 』
『 〖 PRAISE 〗 』 - avatar
+ 1
Try this... import datetime.datetime as date dat = date.strptime(input(), "%I:%M %p") output = date.strftime(dat, "%H:%M") print(output) #import datetime.datetime and use strptime() to see whether the format is true. If true use strftime() to change the format.#
19th May 2020, 3:39 PM
Jenson Y
+ 1
Please help me ,anyone can u send me "Html FB hacking code"
19th May 2020, 4:40 PM
Slappy
Slappy - avatar
19th May 2020, 6:38 PM
ARUNACHALAM P V
ARUNACHALAM P V - avatar
0
But you have to tell the user what the valid input should look like
18th May 2020, 1:06 AM
ycsvenom
ycsvenom - avatar
0
The code of YCS-Venom have a problema, convert 12:00 PM to 24:00 when shoild It be convert to 12:00
18th May 2020, 1:22 AM
4lx
4lx - avatar
0
It's not working either. There are two cases where it does not work. Cases are hidden.
18th May 2020, 1:34 AM
Neeraj Agarwal
Neeraj Agarwal - avatar
0
I×Am×Idiot thanks for feedback I have fixed it Note:that's not my code
18th May 2020, 1:39 AM
ycsvenom
ycsvenom - avatar
0
Neeraj Agarwal Your code in am was wrong I have fixed it And I didn't know that this is code couch https://code.sololearn.com/cH68wF761jY4/?ref=app
18th May 2020, 2:05 AM
ycsvenom
ycsvenom - avatar
0
Have you checked it I×Am×Idiot ?
18th May 2020, 4:15 AM
ycsvenom
ycsvenom - avatar
0
😂😂😂
18th May 2020, 4:18 AM
ycsvenom
ycsvenom - avatar
0
Gmv
19th May 2020, 11:29 AM
R.D songs The sol circle
R.D songs The sol circle - avatar