I am trying to understand in
operator's usage in Python.
Is there any difference between the following cases?
Case 1:
a = "Hello"
b = "Help"
b[0] in {a[0], '.'} #case1_variant
>> True
Case 2:
a = "Hello"
b = "Help"
b[0] in a[0] #case2_variant
>> True
Though the outputs are same, I wanted to understand what the case1_variant
stands for.