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


a=2; 
print(a<<4)

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