2
2

スペースで埋めて数字を3桁の文字列にするプログラムを実装しました

# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ!!
num = input()
# スペース埋め
ans = "{: >3}".format(num)
print(ans)
2
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2