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