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