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