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


a=2; 
print(a<<4)

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