grade=60
if grade>=90:
print(“A”)
elif grade<=60:
print(“C”)
else:
print(“B”)
num=input(‘请输入数字’)
if len(num)<5 or len(num)>5:
print(‘不是五位数’)
else:
a=num[0]
b=num[1]
c=num[2]
d=num[3]
e=num[4]
if ae and bd:
print(‘是回文数’)
else:
print(‘不是回文数’)
num=int(input(‘请输入数字’))
a=num%7
if a0:
print(‘星期日’)
elif a1:
#print(‘星期一’)
print(‘星期%s’%a)
elif a2:
print(‘星期二’)
elif a3:
print(‘星期三’)
elif a4:
print(‘星期四’)
elif a5:
print(‘星期五’)
else:
print(‘星期六’)
age=int(input(‘请输入年龄’))
if age>150:
print(‘年龄异常’)
elif age>100:
print(‘寿星’)
elif age>61:
print(‘老年’)
elif age>31:
print(‘中年’)
elif age>18:
print(‘青年’)
elif age>8:
print(‘少年’)
elif age>1:
print(‘儿童’)
else:
print(‘年龄异常’)