prog6_17.py

how_happy = int(input("どのくらい幸せ?"))
for _ in range(how_happy):
    print("ハッピー", end="")
print("!")

# プログラム6-17(指定した個数の文字列を出力)