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