Level 5 : What will be the output of the following code snippet?


count = 0
while(True):
   if count % 3 == 0:
       print(count, end = " ")
   if(count > 15):
       break;
   count += 1

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