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