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