Level 10 : What will be printed by this code?


x = 3
y = x | 2 & 1 ^ 5
print(y)

Author: SandhyaR | Tags: operator | 1736+ Python FAQs | Share
list-comprehension | sorted | version | filter-function | python-repl | global | pandas | sys | min-function | counter-function | pickling-&-unpickling | type_conversion | objects | constructor | heap-memory | encoding | type-conversion | math | expand-tab | data-structure | context-manager | command-line-parsing | goto-function | lambdas | data_structure | arithmetic-operation | turtle | loop | memory-management | random-function | __future__ | assert | odd-number | input-function | function-argument | matplotlib | binary-operation | name-mangling | feature | decimal | classes | __init_subclass__ | default-mutable-argument | else-statement | datatype | collections | built-in-function | staticmethod | lambda-function | multithreading | __all__-attribute | binary | collection | file-handling | error | class-and-inheritance | python_version | bitwise-operator | function | async | mathematical-function | comprehension | parameter | string-manipulation | round-function | virtual-environment | bitwise | while-loop | recursion | lists | filter | integer | compute | tuple | numpy | operations | append | immutable-data-type | dicts | rollback | functional-programming | list-mutation | zip-function | sum-function | python-module | condition | data-type | stack | input-function | class | namedtuple | counter | built-in-function | with-statement | sorting | identity-operator | error-handling | descriptors | decorator | comment | factorial-function | iterable | oop | conversion | center | floating-point-precision | def | python | data-type | choice | identifier | benefit | print | operator-overloading | generators-in-python | docstring | copy | datetime | debugging | update | global-keyword | global-variable | string-slicing | math-copysign | multiple-inheritance | version-check | dictionary | expression | string | id-function | while-else-loop | scientific-notation | exception-handling | namespace | package-management | mapping-function | destructor | asyncio-module | implementation | sys-module | mathematics | loop-control | zfill-function | operator | conditional-statement | indexing | head-and-tail | application | match | overflow | module | invalid-list | functions | list-vs-tuple | tuple-unpacking | raise | control-statement | int | comparison | data-structures | min-max-function | enumerate() | indentation | formal-and-actual-parameter | precedence-and-associativity | variable | assignment-operator | generator | sum() | threading | string-method | static-method | mysql | string-concatenation | basic | generators | list-indexing | recurssion | fabs-function | import-method | shallow-copy | operator-or | library | dictionaries | oops | logical-operation | while-and-for-loop | boolean-and-non-boolean | mutable | installation | syntax-error | methods | design-principle | complex | numeric | class-and-object | string-method | print-statement | yield | inheritance | list-slicing | inherit | data-structure | magic-method | max-min | built-in | memory | encapsulation | exception-handling | list-comprehension | set-operation | postfix | split | exponentiation | gil | conditional-statement | string-slicing | slice | global-variable | matrix | access-modifier | thread | file | iterator | asyncio | bitwise-operator | higher-order-function | identity-operator | string-formatting | matrix-list-comprehension | swapping | complex-number | logical-operator | deep-copy | pep | function-and-scope | operators | statement | slicing | operand | virtual-environment | regular-expression | range | lambda | pseudocode | input | syntax | interpreter | typeerror | attribute | type-conversion | array | file-handling | file_handling | list-operation | python-django | syntax-error | python-history | frozenset | string-formatting | list-join | zip | escape-operator | arithmetic-expression | map-function | round | for | class-and-instance-variable | control-flow | object-attribute | logical-operator | exception | polymorphism | control-flow | nested-loop | list-method | multiprocessing | init | software-design | format | set | list | call | immutability | random | return-statement | string-iteration | touples | keyword | syntaxerror | regex | boolean | operator-and | method | join | precedence | loops ...