Python出力変数
出力変数
Pythonprint
ステートメントは、変数を出力するためによく使用されます。
例
x = "Python is awesome"
print(x)
テキストと変数の両方を組み合わせるために、Pythonは次の
+
文字を使用します。
例
x = "awesome"
print("Python is " + x)
カンマ文字,
を使用して、複数の文字列/変数を出力することもできます。
例
x = "awesome"
print("Python is", x)