import random print("サイコロを振ります!") number = random.randint(1, 6) print(f"{number}が出ました!") # プログラム5-8(サイコロのシミュレーション)