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