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