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