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