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