1.palindrome: "It Is A Palindrome" "It Is Not A Palindrome"
1.palindrome: "It Is A Palindrome" "It Is Not A Palindrome"
Palindrome
In [ ]: t=int(input())
while t>=1:
s=str(input())
l=len(s)//2
cnt=0
for i in range(l):
if s[i].lower()==s[len(s)-i-1].lower():
cnt+=1
if cnt==l:
print("It is a palindrome")
else:
while t>=1:
t-=1
n=int(input())
l=[]
for i in range(n):
if i==0:
l.append(3)
elif i%2==0:
l.append(2*i)
else:
l.append(i*i)
print(*l)
while t>=1:
t-=1
x1,y1,x2,y2=map(int,input().split())
d1=x1-x2
d2=y1-y2
ed=pow((d1*d1)+(d2*d2),0.5)
format_ans="{:.2f}".format(ed)
print(format_ans)
while t>=1:
t-=1
n=int(input())
i=n
while i!=0:
j=0
while j<i:
if (j+1)%5==0:
print("#",end="")
else:
print("*",end="")
j+=1
i-=1
print()
if num >= 1:
DecimalToBinary(num // 2)
print(num % 2, end='')
t=int(input())
while t>=1:
t-=1
n=int(input())
DecimalToBinary(n)
print()