Cognizant Coding Question- 17

One comment on “Cognizant Coding Question- 17”


  • ashu.835

    #pyhton
    arr = list(map(int(input().split()))
    a1 = []
    for i in range(1, len(arr)+1):
    a1.append(arr[-i])
    if a == a1:
    print(“palindrome”)
    else:
    print(“not a palindrome”)