Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=int()
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Lucky(N).Lucky_7()

N=int()
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        #print(self.N_1)
        #print(self.N_2)
        #print(self.N_3)
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        #print(self.N_1)
        #print(self.N_2)
        #print(self.N_3)
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

N=int()
Lucky(N).Lucky_7()

N=int(input())
N_1=int(N/100)
N_2=int((N - 100*N_1)/10)
N_3=int((N-100*N_1-10*N_2))
        

if N_1==7 or N_2==7 or N_3==7:
    print("yes")
else:
    print('no')

N=int(input())
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Lucky(N).Lucky_7()

class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        #print(self.N_1)
        #print(self.N_2)
        #print(self.N_3)
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')


N=int(input())
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Lucky(N).Lucky_7()

N=int(input())
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("Yes")
        else:
            return print('No')

Lucky(N).Lucky_7()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted