0 votes
in Python by
How do you change the data type of a list?

1 Answer

0 votes
by

Below are some of the method to change the data type of a list

  1. To change a list into a tuple, we use the tuple() function
  2. To change it into a set, we use the set() function
  3. To change it into a dictionary, we use the dict() function
  4. To change it into a string, we use the .join() method

Related questions

0 votes
asked Mar 13, 2021 in PL/SQL by rajeshsharma
0 votes
asked Dec 22, 2019 in Python by rajeshsharma
...