Level 10 : What does if i % 3 check for and show me output of the code?


for i in range(1,30):
    if i%3:
        continue
    print(i)

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