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