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