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