Level 8 : What will be the output of the following Python code snippet if x=2? x<<2

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