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