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