LoginSignup
2
2

More than 3 years have passed since last update.

Pythonで足し算 (paizaランク D 相当)を解く

Last updated at Posted at 2020-02-26

初めに

paizaのレベルアップ問題集を解いていたのですが、模範解答がなかったので自分で作ってみました。
言語はPython3です。

問題

Paizaのスキルチェック見本問題 足し算 (paizaランク D 相当)
https://paiza.jp/works/mondai/skillcheck_sample/addition?language_uid=python3
ログインしないと問題文が見れませんでした。
登録は無料ですぐにできるので、とりあえず登録してみることをおススメします。

解答コード

addition.py
# 入力された値を保存する
a, b = (int(x) for x in input().split())

# 値の足し算を計算して答えに保存する
answer = a + b

# 答えを出力する
print(answer)

参考

最後に

分からないところがあれば気軽にコメントしてくださいね。
できるだけ答えますよ!

2
2
0

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