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