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