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