Avatar ·

Python, from a set to a string

📁 List, cortege, Advanced Python Topics

A set {"34", "76", "0", "532"} how to extract the numbers from this set so that the output looks like this?

34, 76, 0, 532

I have thoughts to put it into a list, then extract, but there are still quotation marks, how to get rid of them? {"34", "76", "0", "532"} lst = [] for i in a: lst.append(i) print(lst) ['34', '76', '0', '532']