Horje
if statement in python with sets Code Example
if statement in python with sets
#finding the similarity among two sets and 1 if statement

set_A= {"Apple", "Orange", "coconut"}
set_B= {"Green","Blue", "Yellow" , "Orange"}
set_c = set_A.intersection(set_B)

for x in set_c:

    print(x)
if "Green" in set_B:
    print("Hello Green Guy")




Python

Related
python loop through array step size 2 Code Example python loop through array step size 2 Code Example
Python list loop tutorial Code Example Python list loop tutorial Code Example
concatenating ols model results Code Example concatenating ols model results Code Example
flask login Code Example flask login Code Example
Python - Cómo cruda la cuerda Code Example Python - Cómo cruda la cuerda Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7