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