I am learning python , I leaned in one tuturial that set doesn't allow mutable objects so mutable objects are list I think ?
When i tried this
x = set(["Perl", "Python", "Java"])
it's working fine.
when I tried
cities = set((("Python","Perl"), ("Paris", "Berlin", "London")))
it also working but when i tried this
citiess = set((["Python","Perl"], ["Paris", "Berlin", "London"]))
it's giving error ? so why it's giving error and if it's a list then why first code is running when that also have list??
Please don't redirect question its not same like 'how to construct a set out of list items'