Level 10 : Choose the correct option for the below code?


a = 1
while True:
    if a % 7 == 0:
        break
    print(a)
    a += 1

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