Level 10 : What will be the output of the following code?


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

Author: PravallikaG | Tags: function | 1736+ Python FAQs | Share
list-comprehension | filter | type_conversion | asyncio-module | global-keyword | python-history | yield | feature | file-handling | python_version | mapping-function | polymorphism | string-manipulation | __init_subclass__ | generators-in-python | gil | logical-operator | join | statement | virtual-environment | version-check | boolean | round-function | formal-and-actual-parameter | class | oop | comprehension | boolean-and-non-boolean | sum-function | threading | min-max-function | choice | dictionary | python-repl | append | collections | function-and-scope | pickling-&-unpickling | control-flow | expression | mathematics | multiprocessing | operator-or | __future__ | methods | list-indexing | error | data-type | functional-programming | overflow | sys | memory | nested-loop | random-function | file_handling | regex | lambdas | python-module | print | syntax | exception-handling | operator-and | map-function | counter | zip | string-slicing | set | shallow-copy | keyword | docstring | list-mutation | immutability | indexing | library | multithreading | input-function | filter-function | compute | condition | copy | matrix-list-comprehension | frozenset | def | string-formatting | string-iteration | factorial-function | decimal | list-method | zip-function | static-method | expand-tab | postfix | string-method | enumerate() | assert | mutable | data-structure | complex | objects | type-conversion | software-design | iterator | conversion | list-slicing | tuple | version | file-handling | call | match | stack | asyncio | parameter | bitwise-operator | sum() | decorator | math | with-statement | thread | logical-operation | pep | random | sys-module | counter-function | type-conversion | built-in-function | recurssion | pseudocode | functions | while-and-for-loop | constructor | int | multiple-inheritance | head-and-tail | inherit | data_structure | id-function | operator | identifier | deep-copy | data-structures | round | syntax-error | inheritance | loop | string-concatenation | touples | generator | floating-point-precision | context-manager | lambda-function | encoding | design-principle | list-vs-tuple | odd-number | built-in | identity-operator | function | conditional-statement | binary-operation | operator-overloading | math-copysign | file | namespace | magic-method | classes | arithmetic-operation | comparison | control-statement | method | basic | list-operation | update | return-statement | string-method | heap-memory | input | split | invalid-list | format | list | string-slicing | operand | bitwise-operator | center | application | module | numpy | range | comment | namedtuple | swapping | global | print-statement | exponentiation | debugging | destructor | class-and-inheritance | else-statement | fabs-function | precedence | collection | python | __all__-attribute | sorting | identity-operator | recursion | mysql | tuple-unpacking | mathematical-function | lambda | name-mangling | iterable | global-variable | variable | complex-number | input-function | sorted | descriptors | datatype | syntax-error | bitwise | lists | indentation | dictionaries | function-argument | string-formatting | operators | error-handling | regular-expression | arithmetic-expression | assignment-operator | control-flow | dicts | init | integer | oops | matrix | data-structure | goto-function | binary | pandas | list-comprehension | for | async | escape-operator | object-attribute | turtle | while-loop | class-and-instance-variable | precedence-and-associativity | loops | matplotlib | package-management | loop-control | encapsulation | higher-order-function | raise | slice | installation | scientific-notation | memory-management | operations | interpreter | while-else-loop | numeric | generators | built-in-function | attribute | zfill-function | benefit | set-operation | command-line-parsing | class-and-object | datetime | implementation | access-modifier | staticmethod | data-type | python-django | min-function | exception | typeerror | default-mutable-argument | max-min | logical-operator | global-variable | virtual-environment | immutable-data-type | string | list-join | array | import-method | rollback | syntaxerror | conditional-statement | exception-handling | slicing ...