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