Level 1 : What will be the output for following for loop using zip function?


for i, j in zip(range(1, 2), range(4, 2, -1)):
	print(i,j)

Author: Devakanth | Tags: zip | 1859+ Python FAQs | Share
using-lists-as-stacks | while-loops | walking-through-directories-using-os.walk() | while-else-loop | type-conversion | update | while-and-for-loop | namespace | time-series-with-pandas | using-assertions-(assertequal,-assertraises) | pickling--unpickling | tuple-methods | loop-control-statements | reading-and-writing-files | max-min | list-method | while-loop | sets | syntax-error | lists | nested-loop | type_conversion | python-django | pandas | regex | logical-operator | variable | list-methods-and-slicing | zfill-function | sorted | oop | print | dictionary-comprehensions | raise | sys | identity-operator | advanced-file-operations | dictionary | numeric | error-handling | name-mangling | datetime | indentation | min-function | list-comprehension | why-use-multiprocessing-over-threading?-(gil) | init | type-conversion | single-inheritance | conditional-statement | __all__-attribute | assignment-operator | __init_subclass__ | method | arithmetic-expression | namedtuple | fabs-function | join | generator | python-operators | numpy | exception-handling | pseudocode | handling-missing-values-(fillna,-dropna) | class-and-object | iterators | reading:-read(),-readline(),-readlines() | print-statement | statement | installation | __future__ | class-decorators | generators-in-python | introduction-to-multiprocessing | touples | encoding | file | operator-or | type-conversion-and-casting | file-handling | syntaxerror | string-methods | format | mysql | turtle | postfix | recursion | zip-function | yield | iterable | dictionaries | stack | bitwise | multiple-inheritance | center | loop | interpreter | input | else-statement | data-type-conversions | creating-and-starting-threads | floating-point-precision | object-attribute | classes | decimal | comprehension | python-syntax-and-structure | sorting-and-ranking | using-the-threading-module | operand | literal-characters-and-special-characters | exponentiation | regular-expression | indexing:-loc-vs-iloc | intering | working-with-binary-files-(rb,-wb) | keyword | expression | set | package-management | operations | introduction-to-threads | boolean-masking | string-method | gil | pass | string-manipulation | filter | else | rollback | random-function | precedence | booleans | data-structure | match | built-in-function | method-overloading | identity-operator | using-os-and-pathlib-modules | unit-testing | library | defining-functions | built-in-function | generators | managing-directories-with-os-and-shutil | for | context-manager | enumerate() | introduction-to-python | loop-control | data-type | regular-expressions | int | function-argument | list-operation | binary-operation | anchors-(^,-$) | collection | destructor | global-keyword | magic-method | iterator | dictionary-methods | bitwise-operator | def | default-arguments | functional-programming | list-comprehension | staticmethod | heap-memory | built-in-modules | escape-operator | list-mutation | class-and-inheritance | list-vs-tuple | immutability | filter-function | typeerror | working-with-dates-and-times | zip | virtual-environment | datetime.date,-datetime.time,-datetime.datetime | control-statement | conditional-statement | asyncio-module | class | static-method | threading | using-join()-and-is_alive()-methods | map-function | shallow-copy | complex | floats | operator-and | overriding-methods | lambda | data-structure | pep | basic | python_version | exception-handling | functions | async | benefit | counter | higher-order-function | return-statement | mutable | matplotlib | bitwise-operator | operators | methods | choice | creating-custom-modules | precedence-and-associativity | string-slicing | integers | oops | round-function | integer | append | dataframe-and-series-objects | control-flow | copy | python | slice | logical-operation | slicing | access-modifier | goto-function | odd-number | encapsulation | python-history | strings | control-flow | using-else-and-finally | data-structures | working-with-file-paths | list-join | list-comprehensions | binary | test-discovery | tuples | arbitrary-arguments-(*args,-**kwargs) | list-slicing | counter-function | parsing-with-strptime | functional-programming | datatype | file-handling | function | joining-and-merging-dataframes | lambda-functions | feature | sys-module | string-concatenation | string | thread-safe-data-structures-(queue.queue) | list | lambdas | indexing | application | head-and-tail | deep-copy | array | sorting | memory | random | global-variable | lambda-function | comment | writing:-write(),-writelines() | tuple | call | opening-files-(open()) | operator | python-repl | logical-operator | sum-function | factorial-function | debugging | range | docstring | round | complex-number | boolean | id-function | decorator | string-slicing | quantifiers-(*,-+,-?,-{}) | module | python-module | list,-set,-and-dictionary-comprehensions | operator-overloading | attribute | mathematics | data-structures-in-python | tuple-unpacking | overflow | conditional-statements | string-iteration | aggregating-data-with-functools.reduce() | using-yield-in-functions | design-principle | polymorphism | implementation | constructor | assignment-operators | identifier | inherit | mapping-function | memory-management | matrix-list-comprehension | syntax-error | set-operation | directory-operations | string-formatting | reading-and-writing-large-files-efficiently | software-design | membership-operators-(in,-not-in) | raise-statement | class-and-instance-variable | input-function | min-max-function | difference-between-threads-and-processes | key-value-pairs | arithmetic-operation | thread-synchronization | file_handling | condition | string-formatting | boolean-and-non-boolean | string-method | filtering-and-indexing | built-in | command-line-parsing | multiple-except-blocks | identity-operators-(is,-is-not) | import-method | with-statement | syntax | objects | expand-tab | scientific-notation | mathematical-function | inheritance | split | comparison | swapping | logical-operators | parameter | sum() | list-indexing | recurssion | immutable-data-type | input-function | default-mutable-argument | formatting-with-strftime | matrix | data-type | conversion | multiple-inheritance | data_structure | dicts | error-handling | descriptors | multithreading | global-variable | virtual-environment | asyncio | thread | data-types | global | loops | math | version-check | function-and-scope | multiprocessing | compute | math-copysign | invalid-list | version | error | formal-and-actual-parameter | assert | frozenset | exception | working-with-temporary-files-using-tempfile | using-map()-for-transformations | collections ...