answer5_1.py

import random

color = "赤青黄緑紫桃白黒"
lucky = random.choice(color)
print(f"今日のラッキーカラーは{lucky}色です!")

# 章末問題 5章【1】解答例