I’ve got wrong answer but my code is working good i tested it on 20 diffrent words and it works but website still says the code is not working.

a = int(input())
i = 0
while i < a:
    b = input()
    c = len(b)
    d = c / 2
    e = ""
    j = 0
    while j < d:
        e = e + b[j]
        j = j + 2
    print(e)
    i = i + 1
  • created

    Jul '21
  • last reply

    Jul '21
  • 1

    reply

  • 503

    views

  • 2

    users

Test it with the sample test case from the problem - it doesn’t give the expected output.

Suggested Topics

Topic Category Replies Views Activity
Online Judge System 0 102 Apr 14

Want to read more? Browse other topics in Online Judge System or view latest topics.