スペースで埋めて数字を3桁の文字列にするプログラムを実装しました
# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ!!
num = input()
# スペース埋め
ans = "{: >3}".format(num)
print(ans)
Go to list of users who liked
More than 1 year has passed since last update.
スペースで埋めて数字を3桁の文字列にするプログラムを実装しました
# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ!!
num = input()
# スペース埋め
ans = "{: >3}".format(num)
print(ans)
Register as a new user and use Qiita more conveniently
Go to list of users who liked