python3zip
import random
# Generate random letters to write 1000 words
letters = [chr(random.randint(97
122)) for _ in range(1000)]
# Zip the letters into groups of 10
zip_groups = zip(*[iter(letters)] * 10)
# Write each group of letters
for i
group in enumerate(zip_groups):
print(f"Group {i + 1}: {''.join(group)}")
版权声明:本站内容源自互联网,如有内容侵犯了你的权益,请联系删除相关内容。