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