Share your repls and programming experiences

← Back to all posts
Write a python function to reverse a string if its length is a multiple of 4
poojashenoyu (0)

name=input("enter a name:")

if(len(name)%4==0):
print(name[::-1])
else:
print("cant")