Level 10 : What is the output of the following code?


a=2; 
print(a<<4)

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