Feb-05-2021, 03:30 PM
Quote:convert set to a list type in python
>>> hh = {2, 4, 6, 8, 10} >>> type(hh) <class 'set'> >>> hh = list(hh) >>> type(hh) <class 'list'>
convert set to a list type in python
|
|
Messages In This Thread |
convert set to a list type in python - by firaki12345 - Feb-05-2021, 02:53 PM
RE: convert set to a list type in python - by Larz60+ - Feb-05-2021, 03:30 PM
RE: convert set to a list type in python - by buran - Feb-05-2021, 03:45 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Q. Nested for statement in list type | ives | 3 | 3,231 |
Mar-14-2018, 07:30 AM Last Post: Larz60+ |
|
how to edit data frames and convert to a list(pandas, read_html()) ? | donvirte | 3 | 4,382 |
Feb-02-2018, 03:23 PM Last Post: snippsat |
|
convert list compression to for loop | Prince_Bhatia | 5 | 5,074 |
Oct-09-2017, 10:42 PM Last Post: micseydel |