qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("Yes")
        res = res+1

if res == 0:
    print("No")

Fixed code:
a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("Yes")
        res = res+1
        break
if res == 0:
    print("No")
Buggy code:
N = str(input())
if '7' in N:
  print('Yes'):
else:
  print('No')

Fixed code:
N = str(input())
if "7" in N:
    print("Yes")
else:
    print("No")
Buggy code:
n = input()
 
if n in "7":
  print("Yes")
else:
  print("No")

Fixed code:
n = input()
if '7' in n:
    print('Yes')
else:
    print('No')
Buggy code:
n = input()
for ni in n:
    if ni == '7'
        print( 'Yes' )
        quit()
print( 'No' )

Fixed code:
n = input()
for ni in n:
    if ni == '7' :
        print( 'Yes' )
        quit()
print( 'No' )
Buggy code:
print('YNeos'['7'in input()::2])

Fixed code:
print('YNeos'[not'7'in input()::2])
Buggy code:
N = int( input() )
if 7 in input :
    print( 'Yes' )
else :
    print( 'No' )

Fixed code:
N=input()
if '7' in N:
	print('Yes')
else:
	print('No')
Buggy code:
#!usr/bin/env pypy3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)


def main():
    a = list(input())
    print("No" if a.index("7") == -1 else "Yes")


main()


Fixed code:
#!usr/bin/env pypy3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)


def main():
    a = list(input())
    print("Yes" if "7" in a else "No")


main()
Buggy code:
N = int(input())
if 7 in N:
  print("Yes")
else:
  print('No')

Fixed code:
N = (input())
if '7' in N:
  print("Yes")
else:
  print('No')
Buggy code:
def main():
  n = input()
  print("Yes" if n.count() > 0 else "No")
  

if __name__ == "__main__":
  main()


Fixed code:
def main():
  n = input()
  print("Yes" if n.count("7") > 0 else "No")
  

if __name__ == "__main__":
  main()
Buggy code:
a = input()

for i in a:
    if i == "7":
        print("Yes")
        break
    else:
        print("No")

Fixed code:
a = input()

for i in a:
    if i == "7":
        ans = "Yes"
        break
    else:
        ans = "No"

print(ans)
Buggy code:
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
        return 'No'


if __name__ == '__main__':
    print(main())


Fixed code:
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
    return 'No'


if __name__ == '__main__':
    print(main())
Buggy code:
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    N = input()
    print('YNeos'[not '7' in N::2])

    if __name__ == '__main__':
        main()


Fixed code:
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    N = input()
    print('YNeos'[not '7' in N::2])

if __name__ == '__main__':
    main()
Buggy code:
N = int(input())
if '7' in N:
  print("Yes")
else:
  print("No")

Fixed code:
N = input()
if '7' in N:
  print("Yes")
else:
  print("No")
Buggy code:
n = input()
if '7' in n : print('Yes')
else : print('No')127


Fixed code:
n = input()
if '7' in n : print('Yes')
else : print('No')
Buggy code:
N = input()

def a(N):
	for c in N:
  		if c = "7":
    		return "Yes"
    return "No"
 
print(a(N))

Fixed code:
N = input()

def a(N):
	for c in N:
		if c == "7":
			return "Yes"
	return "No"
 
print(a(N))
Buggy code:
import sys

X =int, input()
test = list(X)
print(test)
for num in test:
  tmp = int(num)
  if tmp == 7:
    print("Yes")
    sys.exit()
print("No")

Fixed code:
import sys
 
X = input()
test = list(X)
for num in test:
  tmp = int(num)
  if tmp == 7:
    print("Yes")
    sys.exit()
print("No")
Buggy code:
n = input()
print("Yes" if s.count("7") >= 1 else "No")


Fixed code:
n = input()
print("Yes" if n.count("7") >= 1 else "No")
Buggy code:
n=str(input())
a=0
for i in range(len(a)):
	if int(n[i])==7:
		a=1
        break
if a==1:
  print('Yes')
else:
  print('No')

Fixed code:
n=str(input())
a=0
for i in range(len(n)):
    if int(n[i])==7:
        a=1
        break
if a==1:
  print('Yes')
else:
  print('No')
Buggy code:
N = int(input())
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")


Fixed code:
N = int(input())
listN = sorted(str(N))
if listN.count("7") >= 1:
    print("Yes")
else:
    print("No")
Buggy code:
import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


def main():
    n = s_input()
    if "7" in n:
        print("yes")
    else:
        print("No")




if __name__=="__main__":
    main()


Fixed code:
import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


def main():
    n = i_input()
    n = str(n)
    if "7" in n:
        print("Yes")
    else:
        print("No")




if __name__=="__main__":
    main()
Buggy code:
n=input()
n=str(n)
t='nd'
for i in n;
	if i=='7':
    	print('Yes')
      	t='d'
if t=='nd':print('No')        

Fixed code:
n=input()
n=str(n)
t='nd'
for i in n:
    if i=='7':
        print('Yes')
        t='d'
        break
if t=='nd':print('No')
Buggy code:
N = input()
if N.count == 0:
  print("No")
else:
  print("Yes")
  

Fixed code:
N = input()
if N.count("7") == 0:
    print("No")
else:
    print("Yes")
Buggy code:
n = input()
for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
    else:
        print('No')


Fixed code:
n = input()

for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
        exit()
        
print('No')
Buggy code:
n = input()
if n.count() == 0:
    print('No')
else:
    print('Yes')

Fixed code:
n = input()
if n.count('7') == 0:
    print('No')
else:
    print('Yes')
Buggy code:
print(["No","Yes"][int("7" in input())]

Fixed code:
print(["No","Yes"][int("7" in input())])
Buggy code:
a=list(input())
x=0
for i in a:
    if i=="7":
        x=1
        print("Yes")
if x==0:
    print("No")

Fixed code:
a=list(input())
x=0
for i in a:
    if i=="7":
        x=1
        print("Yes")
        break
if x==0:
    print("No")
Buggy code:
n = input()
ans=0
for i in n:
    if i==7:
        ans=1
if ans==1:
    print("Yes")
else:
    print("No")


Fixed code:
n = input()
ans=0
for i in n:
    if i==str(7):
        ans=1
if ans==1:
    print("Yes")
else:
    print("No")
Buggy code:
N=input()

flg=0
for i in range(len(N)):
    if N[i]=='7':
        flg=1
        exit(0)
if flg!=0:
    print('Yes')
else:
    print('No')
    

Fixed code:
N=input()

flg=0
for i in range(len(N)):
    if N[i]=='7':
        flg+=1

if flg!=0:
    print('Yes')
else:
    print('No')
Buggy code:
a=input()
ans='No'
for i in a:
  if i==7:
    ans='Yes'
print(ans)

Fixed code:
a=input()
ans='No'
for i in a:
  if i=='7':
    ans='Yes'
    break
print(ans)
Buggy code:
N=int(input())
if N.count(7)>0:
	print('Yes')
else:
	print('No')

Fixed code:
N=input()

if N.count('7')>0:
  print('Yes')

else:
  print('No')
Buggy code:
n = input()
if n in "7":
    print("Yes")
else:
    print("No")

Fixed code:
n=input()
if "7" in n:
  print('Yes')
else:
  print('No')
Buggy code:
N = input()

for i in range(len(N)):
	if N[i] =='7':
    	print("Yes")
       	exit()

print("No")

Fixed code:
N = input()
 
for i in range(len(N)):
	if N[i] =='7':
		print("Yes")
		exit()
 
print("No")
Buggy code:
number = int(input())
flag = False
for i in range(len(number)):
	if int(number[i])==7:
		flag = True
		break
if(flag):
	print("Yes")
else:
	print("No")
























Fixed code:
number = str(input())
flag = False
for i in range(len(number)):
	if int(number[i])==7:
		flag = True
		break
if(flag):
	print("Yes")
else:
	print("No")
Buggy code:
a = input()

count = False
for i in range(len(a)):
    if i == "7":
        count = True
        break

if count:
    print("Yes")
else:
    print("No")

Fixed code:
a = input()

count = False
for i in range(len(a)):
    if a[i] == "7":
        count = True
        break

if count:
    print("Yes")
else:
    print("No")
Buggy code:
n = input()

if ('7' in n):
  print('Yes')
else:
  pritn('No')

Fixed code:
n = input()

if ('7' in n):
  print('Yes')
else:
  print('No')
Buggy code:
N = list(input())
print(N)
if "7" in N:
    print("Yes")
else:
    print("No")

Fixed code:
N=input()
if '7' in N: print('Yes')
else: print('No')
Buggy code:
n = input()
judge = False
for i in range(len(n)):
  if n[i] == 7:
    judge = True
    break
if judge == True:
  return "Yes"
else:
  return "No"



Fixed code:
n = input()
judge = False
for i in range(len(n)):
    if n[i] == "7":
        judge = True
        break
if judge == True:
    print("Yes")
else:
    print("No")
Buggy code:
N = list(input())

for i in N:
    if i == "7"
        print("Yes")
        break
    
else:
    print("No")

Fixed code:
N = list(input())

for i in N:
    if i == "7":
        print("Yes")
        break
    
else:
    print("No")
Buggy code:
num = input()

for i in range(len(num)):
  if(num[i] == "7"):
    print("Yes")
    break
  elif(len(num) == i):
    print("No")
    break

Fixed code:
num = input()

for i in range(len(num)):
  if(num[i] == "7"):
    print("Yes")
    break
  elif(len(num)-1 == i):
    print("No")
    break
Buggy code:
N = input()
if '7' in N:
    print('Yes')
else:
    print:('No')

Fixed code:
N = input()

if('7' in N):
  print('Yes')
else:
  print('No')
Buggy code:
n = input()
ans = 'No'
for s in n:
    if s == '7'
    ans = 'Yes'
    break
print(ans)

Fixed code:
n = input()
ans = 'No'
for s in n:
    if s == '7':
        ans = 'Yes'
        break
print(ans)
Buggy code:
A = [0, 0, 0]
bool = 0
for i in range(3):
  A[i] = N % 10
  N = (N - A[i])/10
  if A[i] == 7:
    print('Yes')
    bool = 1
    break
if bool == 0:
    print('No')


Fixed code:
N = int(input())
A = [0, 0, 0]
bool = 0
for i in range(3):
  A[i] = N % 10
  N = (N - A[i])/10
  if A[i] == 7:
    print('Yes')
    bool = 1
    break
if bool == 0:
    print('No')
Buggy code:
n=int(input()) 
res="No" 
for i in range(3):
  if n%7==0:
    res="Yes"
  n//=10
print (res) 

Fixed code:
n=int(input()) 

res="No" 

for i in range(3):

  if n%10==7:

    res="Yes"

  n//=10

print (res)
Buggy code:

ipt = str(input().split())
print(ipt)
if("7" in ipt):
    print("Yes")
else:
    print("No")


Fixed code:
ipt = str(input().split())
if("7" in ipt):
    print("Yes")
else:
    print("No")
Buggy code:
N=input()
x=N.count(N)
print("Yes" if x>0
      else "No")

Fixed code:
N=input()
x=N.count("7")
print("Yes" if x>0
      else "No")
Buggy code:
N = input()
if '7' in N:
    pritn('Yes')
else :
    print('No')

Fixed code:
N = input()
if '7' in N:
    print('Yes')
else :
    print('No')
Buggy code:
N = input()

if 7 in N:
    print("Yes")
else:
    print("No")

Fixed code:
N = input()
if '7' in N:
    print('Yes')
else:
    print('No')
Buggy code:
n = str(input())
count = 0

for i in n:
  if (i=='7'):
    count++
    break
    
if (count!=0):
	print("Yes")
else:
	print("No")

Fixed code:
n = input()
n = str(n)
count = 0
 
for i in n:
  if (i=='7'):
    count = 1
    break
    
if (count!=0):
	print("Yes")
else:
	print("No")
Buggy code:
x = int(input())
j = False
for i in range(len(x))
  if x[i] == 7:
    j = True
if j:
  print('Yes')
else:
  print('No')

Fixed code:
x = input()
j = False
for i in range(len(x)):
  if x[i] == '7':
    j = True
if j:
  print('Yes')
else:
  print('No')
Buggy code:
n = input()
for i in n:
  if i == 7:
    print("Yes")
    quit()
print("No")

Fixed code:
n = input()
for i in n:
  if i == "7":
    print("Yes")
    quit()
print("No")
Buggy code:
N = input()
for i in range(N):
    if N[i] = '7':
        print('Yes')
        break
else:
    print('No')

Fixed code:
N = input()
for i in range(len(N)):
    if N[i] == '7':
        print('Yes')
        break
else:
    print('No')
Buggy code:
n = input()

flag = "No"
for i in n :
    print(i)
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)

Fixed code:
n = input()
 
flag = "No"
for i in n :
    #print(int(i))
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)
Buggy code:
n = str(input())

ans = 'No'

for i in range(len(n)):
    if n[i] == '7':
        ans = 'Yes'

print('Yes')


Fixed code:
n = str(input())

ans = 'No'

for i in range(len(n)):
    if n[i] == '7':
        ans = 'Yes'

print(ans)
Buggy code:
N = input
a = "No"
for n in N:
  if n == "7":
    a = "Yes"
print (a)

Fixed code:
N = input ()
a = "No"
for n in N:
  if n == "7":
    a = "Yes"
print (a)
Buggy code:
k = list(str(input()))
re = False
for i in range(len(k)):
  if i == '7':
    re = True
    
if re:
  print('Yes')
else:
  print('No')

Fixed code:
k = list(str(input()))
re = False
for i in k:
  if i == '7':
    re = True
    
if re:
  print('Yes')
else:
  print('No')
Buggy code:
A=input()

if A in "7":
  print("Yes")

else:
  print("No
")

Fixed code:
A=input()
 
if "7" in A:
  print("Yes")
else:
  print("No")
Buggy code:
S = input()
flag = False
length = len(S)
for i in range(length):
  if S[i] == '7':
    flag == True
    break
print("Yes" if flag == True else "No")

Fixed code:
S = input()
flag = False
length = len(S)
for i in range(length):
  if S[i] == '7':
    flag = True
    break
print("Yes" if flag == True else "No")
Buggy code:
N = input()
print("Yes" if N in "7" else "No")

Fixed code:
N = input()

if '7' in N :
  print('Yes')
else :
  print('No')
Buggy code:
param = input()

ret = None
if param in '7':
  ret = 'Yes'
else:
  ret = 'No'
  
print(f'{ret}')

Fixed code:
param = input()

ret = None
if '7' in param:
    ret = 'Yes'
else:
    ret = 'No'

print(f'{ret}')
Buggy code:
n = int(input)
Flag = False
for i in n:
  if i == 7:
    Flag = True
if Flag:
  print("Yes")
else:
  print("No")
  

Fixed code:
n = input()
Flag = False
for i in n:
  if i == "7":
    Flag = True
if Flag:
  print("Yes")
else:
  print("No")
Buggy code:
N = list(map(int, input()))
cnt = 0
for i in N:
  if i=='7':
    cnt += 1
if cnt==0:
  print('No')
else:
  print('Yes')

Fixed code:
N = list(map(int, input()))
cnt = 0
for i in N:
    if i==7:
        cnt += 1
if cnt==0:
    print('No')
else:
    print('Yes')
Buggy code:
a = input()
b = str(a)
print(b)
if '7' in b:
  print('Yes')
else:
  print('No')

Fixed code:
a = input()
b = str(a)
if '7' in b:
  print('Yes')
else:
  print('No')
Buggy code:
N = int(input())
if '7' in N:
    print('Yes')
else:
    print('No')

Fixed code:
N = input()
if "7" in N:
  print("Yes")
else:
  print("No")
Buggy code:
a = int(input())
aa = list(str(a))
n = 0
for i in range(len(aa)):
	b = int(aa[i])
    if b == 7:
        n +=1
    else:
        n = n
if n > 0:
    print("Yes")
else:
    print("No")

Fixed code:
a = int(input())
aa = list(str(a))
n = 0
for i in range(len(aa)):
    b = int(aa[i])
    if b == 7:
        n +=1
    else:
        n = n
if n > 0:
    print("Yes")
else:
    print("No")
Buggy code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("YES")
    else:
        print("NO")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Fixed code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("Yes")
    else:
        print("No")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()
Buggy code:
n = str(input())
if n.count(7) >= 1:
    print("Yes")
else:
    print("No")

Fixed code:
n = str(input())
if n.count("7") >= 1:
    print("Yes")
else:
    print("No")
Buggy code:
N=int(input())
a=str(N)
if 'a' in 7:
else:
  print("No")
   

Fixed code:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")
Buggy code:
n = list(str(input()))

cnt = 0
for i in range(0, len(n)):
    if int(s[i]) == 7:
        print("Yes")
        cnt += 1
        break
if cnt == 0:
    print("No") 

Fixed code:
n = list(str(input()))

cnt = 0
for i in range(0, len(n)):
    if int(n[i]) == 7:
        print("Yes")
        cnt += 1
        break
if cnt == 0:
    print("No")
Buggy code:
N = list(input())
if N in '7':
	print('Yes')
else:
	print('No')

Fixed code:
N = list(input())
if '7' in N:
	print('Yes')
else:
	print('No')
Buggy code:
n=int(input())
f=0
c=0
while n>0:
  c=n%10
  if c==7:
    f=1
    print("Yes")
if f==0:
  print("No")
  

Fixed code:
n=int(input())
f=0
while n>0:
      c=n%10
      if  c==7:
            f=1
            print("Yes")
            break
      n=int(n/10)
if f==0:
      print("No")
Buggy code:
n = input()
ans = 'No'
for i in range(len(n)):
  if n[i] = '7':
    ans = 'Yes'
    break
print(ans)


Fixed code:
n = list(input())
ans = 'No'
for i in range(len(n)):
  if n[i] == '7':
    ans = 'Yes'
    break
print(ans)
Buggy code:
N = input()

if N in 7:
  print('Yes')
else:
  print('No')

Fixed code:
N = str(input())
if ("7" in N):
  print("Yes")
else:
  print("No")
Buggy code:
def main():
    N = input()
    for i in N:
        if i == "7":
            print("Yes")
            return
    print("No")

    main()
        



Fixed code:
def main():
    N = input()
    for i in N:
        if i == "7":
            print("Yes")
            return
    print("No")

main()
Buggy code:
N = input()

ans = 'Yes'
for n in N:
    if n == '7':
        ans = 'No'
print(ans)



Fixed code:
N = input()

ans = 'No'
for n in N:
    if n == '7':
        ans = 'Yes'
print(ans)
Buggy code:
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        print("Yes")
        cnt = 1
        break

if cnt == 1:
    print("Yes")
else:
    print("No")


Fixed code:
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        cnt = 1
        break

if cnt == 1:
    print("Yes")
else:
    print("No")
Buggy code:
N = list(input(""))

if 7 in N:
    print('Yes')
else:
    print('No')


Fixed code:

# input
N = list(input())

if '7' in N:
    print("Yes")
else:
    print("No")
Buggy code:
i = input()
ans = 'Yes' if '7' in 1 else 'No'
print(ans)

Fixed code:
i = input()
ans = 'Yes' if '7' in i else 'No'
print(ans)
Buggy code:
a = input()
if a.count(7) == 0:
  print('Yes')
else:
  print('No')

Fixed code:
a = input()
if a.count('7') == 0:
  print('No')
else:
  print('Yes')
Buggy code:
n = input()
isSeven = False


for i in n:
  if n == "7":
    isSeven = True
if(isSeven):
  print("Yes")
else:
  print("No")
    

Fixed code:
n = input()
isSeven = False


for i in n:
  if i == "7":
    isSeven = True
if(isSeven):
  print("Yes")
else:
  print("No")
Buggy code:
N = input()
for i in range(len(N)):
  if int(N[i]) == 7:
    flag = 1
if flag == 1:
  print('Yes')
else:
  print('No')

Fixed code:
N = input()
flag = 0
for i in range(len(N)):
  if int(N[i]) == 7:
    flag = 1
if flag == 1:
  print('Yes')
else:
  print('No')
Buggy code:
N=str(input())
for i in range(len(N)):
    if int(N[i]) == 7:
        print(N[i])
        print("Yes")
        exit(0)
print("No")

Fixed code:
N=str(input())
for i in range(len(N)):
    if int(N[i]) == 7:
        print("Yes")
        exit(0)
print("No")
Buggy code:
n=input()
if 7 in n:
  print("Yes")
else:
  print("No")

Fixed code:
n = input()
if('7' in n):
  print('Yes')
else:
  print('No')
Buggy code:
S = list(input())
if S.count(7)==0:
  print('No')
else:
  print('Yes')
  


Fixed code:
S = list(input())
if S.count('7'):
  print('Yes')
else:
  print('No')
Buggy code:
number = input()
  
if 7 in number:
	print("Yes")
else:
	print("No")

Fixed code:
number = input()
  
if '7' in number:
	print("Yes")
else:
	print("No")
Buggy code:
N=int(input())
if '7'in N:
    print('Yes')
else:
    print('No')

Fixed code:
N=input()

if "7" in N:
  print("Yes")
else:
  print("No")
Buggy code:
A
#input
N = int(input())

#output
if "7" in str(N):
    print("Yes")
else:
    print("No")

Fixed code:
#input
N = int(input())

#output
if "7" in str(N):
    print("Yes")
else:
    print("No")
Buggy code:
a=int(input())
while a>0:
    if(a%10==7):
        print('Yes')
        print(a)
        break
    else:a=a//10
if a==0:print('No')
print(a)

Fixed code:
a=int(input())
while a>0:
    if(a%10==7):
        print('Yes')
        break
    else:a=a//10
if a==0:print('No')
Buggy code:
N = str(input())
a=1
for i in range(len(N)):
    if N[i]=='7':
        a=0
        break
if a==1:
    print('Yes')
else:
    print('No')

Fixed code:
N = str(input())
a=1
for i in range(len(N)):
    if N[i]=='7':
        a=0
        break
if a==0:
    print('Yes')
else:
    print('No')