LoginSignup
1
2

More than 5 years have passed since last update.

Python個人用備忘録です

Last updated at Posted at 2018-11-17

はじめに

Qiita初投稿です。
Pythonの勉強をしていてまだまだ初学者です。
初投稿は勉強してから約3時間程です。

個人用備忘録として逐次更新していきます。

間違っている内容がありましたら、ご教授よろしくお願いします。

タプル

変数定義時、後ろに","が残っていると、型はタプルとしてみなされます。

qiita.py
>>> x = 1
>>> type(x)
<type 'int'>
>>> y = 1,
>>> type(y)
<type 'tuple'>
1
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
1
2