Get object out of a set

list

(Rainerhartl) #1

Probably a simple question:

python script:

c = set(a).intersection(b)

print c…set([35])

I have a set with one value.
How do i get this value out of the set? >

Thats what i want:
c = 35


#2
list(c)[0]
#or
c.pop()

?


(Rainerhartl) #3

both are working!

Thanks a lot!