# 遍历列表中的元素

# magicians = ['alice','david','carolina']
# for magician in magicians:
#     print(magician)
#
# magicians = ['alice','david','carolina']
# for magician in magicians:
#     print(f"{magician.title()},that was a great trick!")


# 创建一个列表，包含 1～10 的平方
squares = []
for value in range(1,11):
    square = value ** 2  # 计算遍历的 value 的平方
    squares.append(square)
print(squares)




