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