if whileの使い方

588 ワード

print('------   ------')
name=input('    :')
number=input('     :')
while 1:
    c=input('      :')
    if c==name:
        a = str(input('     :'))
        if a==number:
            print ('    ')
            break
        while a != number:
            print ('     ,        ?     ?      ')
            b = input('     :')
            if b==number:
                print('  ,     ')
                break
            else:
                continue
        break
    else:
        continue