Powered by:AB_IN 局外人
A
while True:
try:
n=input()
if n[::-1]==n:
print("True")
else:
print("False")
except:
break
B
n=int(input("Please input your score: "))
if 90<=n<=100:
print("A")
if 80<=n<=89:
print("B")
if 70<=n<=79:
print("C")
if 60<=n<=69:
print("D")
if 0<=n<=59:
print("F")
C
def h(x):
print("+",end=" ")
for i in range(1,x+1):
print("-",end=" ")
print("+",end=" ")
for i in range(1,x+1):
print("-",end=" ")
print("+")
def l(x):
print("|",end=" ")
for i in range(1,x+1):
print(" ",end=" ")
print("|",end=" ")
for i in range(1,x+1):
print(" ",end=" ")
print("|")
while True:
try:
n=int(input())
h(n)
for i in range(1,n+1):
l(n)
h(n)
for i in range(1,n+1):
l(n)
h(n)
except:
break
D
def is_power(a,b):
if a%b!=0:
return False
if (a/b)%b!=0:
return False
if ((a/b)/b)%b!=0:
return False
return True
a=int(input("Please input a: "))
b=int(input("Please input b: "))
if is_power(a,b)==True:
print("True")
else:
print("False")