Level 9 : What is the output of the followig code?


x=0
while x<20:
    x=x+3
print(x)

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