SohamBhatt
New Member
- Jul 13, 2022
- 3
- 2
Hi,
I am a beginner in Python and was facing some issues with the topic frozenset() in Python, I also referred here but couldn't get what I was looking for and am still confused with this - I have a frozenset A and list B:
I want to compare and indicate that value of frozenset a in b is True. What should I do? Any Suggestions
Thanks in advance
I am a beginner in Python and was facing some issues with the topic frozenset() in Python, I also referred here but couldn't get what I was looking for and am still confused with this - I have a frozenset A and list B:
Code:
>>> a=frozenset(['A','B'])
>>> b=[('A','B'),('C',)]
>>> a in b
False # my output expectation is True
>>> a=frozenset(['A','B'])
>>> b=[('A',),('B',)]
>>> a in b
False # as my output expectation
I want to compare and indicate that value of frozenset a in b is True. What should I do? Any Suggestions
Thanks in advance