# Enter a code
age = 2
if age>=18:
print('adult')
elif age>=6:
print('teenager')
elif age>=3:
print('kid')
else:
print('baby')
age = 2
if age>=18:
print('adult')
elif age>=6:
print('teenager')
elif age>=3:
print('kid')
else:
print('baby')
2024-12-13
L = [[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for it in L:
s = (it[0] * it[1] + it[1] * it[2] + it[0] * it[2]) * 2
print(s)
for it in L:
s = (it[0] * it[1] + it[1] * it[2] + it[0] * it[2]) * 2
print(s)
2024-11-26
# Enter a code
L = [95.5, 85, 59, 66, 72]
a=0
zh=0
n=len(L)
for i in range(n):
sw=False
for su in range(0,n-i-1):
T=0
if L[su+1]>=L[su]:
T=L[su+1]
L[su+1]=L[su]
L[su]=T
sw=True
if not sw:
break
print(L[0:3])
L = [95.5, 85, 59, 66, 72]
a=0
zh=0
n=len(L)
for i in range(n):
sw=False
for su in range(0,n-i-1):
T=0
if L[su+1]>=L[su]:
T=L[su+1]
L[su+1]=L[su]
L[su]=T
sw=True
if not sw:
break
print(L[0:3])
2024-11-18