TOPIC

Presentation Error

[ThinkTEd/GAPA] Fabrizio Honda asked 1 year ago

n = int(input())
k=1
while n!=0:
    assinatura = list(str(n))
    true=0
    found = []
    numero = input()
    j=0
    for i in range(len(numero)):
        if(numero[i]==assinatura[j]):
            found.append(1)
            j+=1
        if(len(found)==len(assinatura)):
            true = 1
            break
    if(true==1):
        print("Instancia",k)
        print("verdadeira")
    else:
        print("Instancia",k)
        print("falsa")
    print()
    k+=1
    n = int(input())

Remember not post solutions. Your post may be reviewed by our moderators.