Level 1 : Which of the following is the correct output of below program?


i = 1:  
while True:  
    if i%3 == 0:  
        break  
    print(i)

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