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