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