Level 9 : what is the output of the following code?


dz = 0
while dz < 3: 
      dz += 1
      if dz == 2:
           continue   
      print(dz)

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