Level 1 : What is the output for the below code?


a = 0

while a < 20:
    a = a+3

print(a)

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