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