Level 10 : What does the // operator do in Python?

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