LoginSignup
2
2

More than 5 years have passed since last update.

python > tupleをlistへ変換 > aList = list(pi_tuple)

Last updated at Posted at 2015-11-17

Python Programming
https://www.youtube.com/watch?v=N4mEzFDjqtA&list=WL&index=34
の12:40あたりから

test.py
pi_tuple = (3,1,4,1,5,9)
aList = list(pi_tuple)

print aList[0]
print aList[1]
print aList[2]
結果
Success time: 0.02 memory: 44632 signal:0
3
1
4
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