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