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