Converting set to list



examples/sets/convert_set_to_list.py
planets = {'Mars', 'Jupiter', 'Saturn', 'Mercury', 'Venus', 'Earth', 'Mars'}
print(planets)

planets_list = list(planets)
print(planets_list)

{'Jupiter', 'Mars', 'Earth', 'Saturn', 'Venus', 'Mercury'}
['Jupiter', 'Mars', 'Earth', 'Saturn', 'Venus', 'Mercury']