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


a=2; 
print(a<<4)

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