SarkariResultess QA Bank

Iterable और iterator में basic difference क्या है? — error आने पर developer क्या करे?

Other 0 Views Verified
Iterable और iterator में basic difference क्या है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

Iterable कभी loop नहीं हो सकता

Iterable कभी loop नहीं हो सकता
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

Iterable से iterator बनाया जा सकता है; iterator next() support करता है

Iterable से iterator बनाया जा सकता है; iterator next() support करता है
Additional Explanation
Iterator __iter__ और __next__ protocol implement करता है। पहले traceback की exact line और input value check करें।
Verified

दोनों हमेशा identical हैं

दोनों हमेशा identical हैं
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

Iterator में __next__ नहीं होता

Iterator में __next__ नहीं होता
Additional Explanation
यह विकल्प सही समाधान नहीं है।