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