prog8_13.py

n = int(input("nを入力して下さい:"))
val_len = len(str(2**n))
print(f"2の{n}乗は{val_len}桁です!")

# プログラム8-13(2**nの桁数)