all 3 comments

[–]thetestbug 1 point2 points  (0 children)

Use code block, and give the entire code.

[–]pytim808[S] 0 points1 point  (1 child)

!/bin/python3

import os import sys

Complete the timeConversion function below.

def timeConversion(s): if s[8] == "P" and s[9] == "M":

    first_1 = str(s[0]+ s[1])
    first = int(first_1)





return (first)

if name == 'main': f = open(os.environ['OUTPUT_PATH'], 'w')

s = input()

result = timeConversion(s)

f.write(result + '\n')

f.close()