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