Level 1 : What will be the output of the following Python expression if x=15 and y=12?


x & y

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