python> Convert tuple to list> aList = list (pi_tuple)

Python Programming https://www.youtube.com/watch?v=N4mEzFDjqtA&list=WL&index=34 From around 12:40

http://ideone.com/5qjmpX

test.py


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

print aList[0]
print aList[1]
print aList[2]

result


Success	time: 0.02 memory: 44632 signal:0
3
1
4

Recommended Posts

python> Convert tuple to list> aList = list (pi_tuple)
[Python] Convert list to Pandas [Pandas]
Python> list> Convert double list to single list
Python> tuple> Convert double tuple to single tuple
[Python] How to convert a 2D list to a 1D list
Convert strings to character-by-character list format with python
[python] Convert date to string
Convert numpy int64 to python int
[Python] How to use list 1
Convert Scratch project to Python
[Python] Convert Shift_JIS to UTF-8
[Python] I want to make a nested list a tuple
[Introduction to Python] <list> [edit: 2020/02/22]
Convert python 3.x code to python 2.x
Convert markdown to PDF in Python
Workflow to convert formula (image) to python
[Python] How to use list 3 Added
[Python] Convert natural numbers to ordinal numbers
Convert decimal numbers to n-ary numbers [python]
[Python] list
[Introduction to Udemy Python3 + Application] 18. List methods
[Python] How to convert db file to csv
Convert memo at once with Python 2to3
Convert Python> two value sequence to dictionary
[Django] Convert QuerySet to dictionary type list
Python> empty XXX (XXX: dict, list, tuple, set)> {} / [] / () / set ()
How to convert Python to an exe file
[Python] Convert csv file delimiters to tab delimiters
Convert psd file to png in Python
Convert Excel data to JSON with python
Convert Hiragana to Romaji with Python (Beta)
Convert from katakana to vowel kana [python]
[Introduction to Udemy Python3 + Application] 17. List operation
Convert FX 1-minute data to 5-minute data with Python
Python amateurs try to summarize the list ①
Basic grammar of Python3 series (list, tuple)
[Python Iroha] Difference between List and Tuple
Convert Python date types to RFC822 format
Convert HEIC files to PNG files with Python
Convert Chinese numerals to Arabic numerals with Python
Summary of how to use Python list
Convert from Markdown to HTML in Python
[Introduction to Udemy Python3 + Application] 16. List type
Convert absolute URLs to relative URLs in Python
Sample to convert image to Wavelet with Python
[Introduction to Udemy Python 3 + Application] 22. Tuple unpacking
[Introduction to Python] What is the difference between a list and a tuple?
[Python] List Comprehension Various ways to create a list
[python] How to display list elements side by side
Python code to convert region mesh code to latitude / longitude
Updated to Python 2.7.9
Python basics: list
Convert FBX files to ASCII <-> BINARY in Python
Convert PDF to image (JPEG / PNG) with Python
Convert "number" of excel date to python datetime
Convert PDFs to images in bulk with Python
List type, tuple type 2
Python script to convert latitude / longitude to mesh code
[Introduction to Udemy Python3 + Application] 60. List comprehension notation
[Python] Convert from DICOM to PNG or CSV
[Introduction to Udemy Python 3 + Application] 19. Copy of list