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