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