Level 3 : What Does the // Operator Do? and give the answer for the below example.


Ex: 5 // 2

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