Home > other >  Iter is filter?
Iter is filter?

Time:09-26

What is the output of this code?
A=[1, 2, 3, 4]
B=[]
C=iter (a)
while (a!=b) :
N=next (c)
B.a ppend (n)
Print (b)

The answer is [1, 2, 3, 4]

Iter is filter?

The answer is how to?

CodePudding user response:

The
refer to the original poster sweetswing response:
what is the output of this code?
A=[1, 2, 3, 4]
B=[]
C=iter (a)
while (a!=b) :
N=next (c)
B.a ppend (n)
Print (b)

The answer is [1, 2, 3, 4]

Iter is filter?

The answer is how to?

Is the iterator, not filter
  • Related