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


dz = 1
while dz < 3: 
  	print(dz)
        dz += 1

Author: Devakanth | Tags: loop | 1736+ Python FAQs | Share
python-repl | datetime | input | built-in-function | list-comprehension | version | mysql | function-argument | scientific-notation | factorial-function | asyncio | filter | higher-order-function | string-method | overflow | global-keyword | built-in | command-line-parsing | inheritance | control-statement | operators | library | dictionary | object-attribute | raise | syntax-error | escape-operator | precedence-and-associativity | list-method | min-function | set-operation | keyword | global-variable | asyncio-module | format | bitwise-operator | operations | update | numeric | match | parameter | operator-and | with-statement | memory-management | multithreading | string-iteration | data-structure | iterable | logical-operator | python-django | multiple-inheritance | sys | init | file_handling | attribute | invalid-list | loop | pandas | multiprocessing | identity-operator | call | global | turtle | installation | zfill-function | classes | encoding | expand-tab | nested-loop | sum() | id-function | debugging | default-mutable-argument | lists | set | expression | pseudocode | type-conversion | lambda | docstring | arithmetic-operation | list-comprehension | collections | interpreter | comment | constructor | inherit | slice | descriptors | regex | sorting | boolean | round | control-flow | frozenset | data-type | functions | __future__ | type-conversion | exception-handling | syntax-error | threading | oop | numpy | rollback | identifier | assignment-operator | list | python | methods | center | data-structures | module | while-else-loop | math | regular-expression | choice | virtual-environment | max-min | method | array | logical-operator | class-and-instance-variable | string-method | conditional-statement | copy | syntax | input-function | list-operation | list-slicing | data_structure | random-function | list-mutation | range | destructor | memory | tuple-unpacking | split | precedence | mapping-function | floating-point-precision | else-statement | pickling-&-unpickling | int | access-modifier | static-method | head-and-tail | yield | comparison | __init_subclass__ | fabs-function | exception | while-loop | feature | filter-function | functional-programming | collection | list-vs-tuple | deep-copy | input-function | python-history | type_conversion | goto-function | dicts | data-structure | immutability | decimal | immutable-data-type | matrix-list-comprehension | namespace | print-statement | for | list-join | indentation | staticmethod | enumerate() | polymorphism | mathematical-function | gil | application | string-formatting | lambda-function | print | return-statement | operator-overloading | loop-control | generators | file | identity-operator | context-manager | implementation | global-variable | loops | integer | objects | error | random | assert | datatype | bitwise | odd-number | sorted | exponentiation | compute | binary | heap-memory | logical-operation | operand | counter-function | matrix | operator | pep | package-management | typeerror | namedtuple | async | string-slicing | mathematics | variable | software-design | file-handling | arithmetic-expression | list-indexing | built-in-function | import-method | append | exception-handling | map-function | recurssion | lambdas | shallow-copy | touples | generator | stack | postfix | function | oops | zip | mutable | virtual-environment | decorator | name-mangling | formal-and-actual-parameter | bitwise-operator | version-check | indexing | tuple | statement | string-formatting | class | conditional-statement | complex-number | thread | control-flow | while-and-for-loop | magic-method | recursion | basic | boolean-and-non-boolean | syntaxerror | binary-operation | string-slicing | min-max-function | math-copysign | join | python-module | encapsulation | condition | class-and-inheritance | dictionaries | round-function | def | conversion | counter | string | benefit | sys-module | complex | class-and-object | zip-function | generators-in-python | design-principle | file-handling | string-concatenation | swapping | error-handling | operator-or | matplotlib | iterator | __all__-attribute | data-type | sum-function | comprehension | slicing | python_version | string-manipulation | function-and-scope ...