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