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

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