Home > other >  Use while Python: true: what is the effect
Use while Python: true: what is the effect

Time:12-17

Huawei machine exam without while true: pass it, run out below the result is the same, want to know the reason?
While True:
Try:
N=int (input ())
S=set ({})
For I in range (n) :
S.a dd (int (input ()))
Nums=list (s)
Nums. Sort ()
For I in nums:
Print (I)
Except:
Break
And
N=int (input ())
S=set ({})
For I in range (n) :
S.a dd (int (input ()))
Nums=list (s)
Nums. Sort ()
For I in nums:
print(i)
  • Related