LoginSignup
0
0

More than 3 years have passed since last update.

はじめてのあっとこーだー Python3編

Last updated at Posted at 2018-01-02

はじめてのあっとこーだーに、Python3のサンプルがなかったので、手探りで作成。

# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# スペース区切りの整数の入力
b, c = map(int, input().split())
# 文字列の入力
s = input()
# 出力
print(str(a+b+c) + " " + s)

リンク切れてました

practice contest
これは2020年12月13日に確認したリンクです。

# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# スペース区切りの整数の入力
b, c = map(int, input().split())
# 文字列の入力
s = input()
# 出力
print("{} {}".format(a+b+c, s))

formatを使ってますね。

0
0
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
0
0