import random


def Eps(A,B): 
    k = A
    for S in range(len(B)):
        if k == B[S]:
            result = 1
            break
    else:
        result = 0
    return result



O = [3,2,9,9,7]

for J in range(10):
    if Eps(J,O) == 1:
        print("OはJを含む")
    else:
        print("OはJを含まない")

    



    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: