Level 1 : What will be the output of the following Python code if x=1?


x<<2

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