- 1
It's cheating but I have a problem. Please tell me why?
24 Respuestas
+ 2
Really slappy 😕😕😕
😒😒😒???
u going to hack fb with html ???
no way
+ 1
This will help
https://code.sololearn.com/cH68wF761jY4/?ref=app
+ 1
Other problem, the ouput should be XX:XX but if the input is X:XX the output is X:XX
+ 1
Ignore this
+ 1
Lol
+ 1
I was splifying the code and i accidentally deleted that part lol
+ 1
"simplified"
https://code.sololearn.com/ccw105xbp9BE/?ref=app
+ 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)
+ 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________
+ 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.#
+ 1
Please help me ,anyone can u send me "Html FB hacking code"
0
But you have to tell the user what the valid input should look like
0
The code of YCS-Venom have a problema, convert 12:00 PM to 24:00 when shoild It be convert to 12:00
0
It's not working either. There are two cases where it does not work. Cases are hidden.
0
I×Am×Idiot thanks for feedback
I have fixed it
Note:that's not my code
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
0
Have you checked it I×Am×Idiot ?
0
😂😂😂
0
Gmv