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