Login
Remember
Register
Ask a Question
How do you change the data type of a list?
0
votes
asked
Sep 22, 2021
in
Python
by
sharadyadav1986
How do you change the data type of a list?
data-type
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 22, 2021
by
sharadyadav1986
Below are some of the method to change the data type of a list
To change a list into a tuple, we use the tuple() function
To change it into a set, we use the set() function
To change it into a dictionary, we use the dict() function
To change it into a string, we use the .join() method
...