+ 7

iter is a iterator?

¿iter es un iterador?

11th Sep 2021, 11:51 PM
CGO!
CGO! - avatar
2 Respostas
+ 3
Hi! No, it returns an iterator for the given object. The iter() function creates an object which can be iterated one element at a time. These objects are useful when coupled with loops like for loop, while loop. You can refer this article to understand its concept clearly. https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/methods/built-in/iter
12th Sep 2021, 1:57 AM
Python Learner
Python Learner - avatar
+ 2
JUMP_LINK__&&__Python__&&__JUMP_LINK Learner Thank you a lot The website this is very good.
12th Sep 2021, 2:37 PM
CGO!
CGO! - avatar