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