Level 1 : What will be the output of the following Python code if x=1?


x<<2

Author: KaivalyaG | Tags: operator | 1736+ Python FAQs | Share
generator | list-comprehension | mysql | docstring | zfill-function | recurssion | data-structure | assert | immutability | operator-and | identity-operator | factorial-function | call | random | asyncio-module | memory-management | control-flow | filter | matrix | max-min | functional-programming | python-django | string-iteration | mathematical-function | virtual-environment | error | print | list-operation | math | python-history | default-mutable-argument | class-and-inheritance | decorator | operator-overloading | file_handling | attribute | bitwise | while-else-loop | append | input | collections | arithmetic-operation | loops | datetime | scientific-notation | loop | classes | keyword | datatype | feature | matplotlib | split | function | decimal | python-module | enumerate() | zip-function | update | fabs-function | identity-operator | encoding | object-attribute | random-function | sum-function | benefit | syntax-error | input-function | integer | return-statement | precedence-and-associativity | implementation | invalid-list | context-manager | function-and-scope | pseudocode | design-principle | list-join | operators | list-vs-tuple | tuple-unpacking | odd-number | range | indexing | tuple | string-slicing | polymorphism | numeric | __all__-attribute | sys | list-mutation | while-loop | string | lambda-function | sorted | head-and-tail | command-line-parsing | oops | raise | conditional-statement | while-and-for-loop | overflow | immutable-data-type | module | turtle | join | logical-operator | deep-copy | condition | function-argument | nested-loop | python_version | escape-operator | iterable | floating-point-precision | heap-memory | regex | built-in | indentation | slice | objects | assignment-operator | virtual-environment | file-handling | postfix | comprehension | operator-or | mutable | library | control-flow | exponentiation | generators | global-keyword | zip | matrix-list-comprehension | basic | version | lists | global | complex | static-method | higher-order-function | multiple-inheritance | type_conversion | thread | functions | import-method | boolean-and-non-boolean | frozenset | typeerror | data-type | numpy | string-manipulation | error-handling | set-operation | goto-function | global-variable | binary-operation | comment | data-structures | multiprocessing | round | pep | loop-control | string-method | operator | counter-function | logical-operator | exception-handling | global-variable | bitwise-operator | swapping | with-statement | type-conversion | __future__ | asyncio | file-handling | inherit | version-check | list-comprehension | dictionaries | destructor | namedtuple | installation | __init_subclass__ | python-repl | methods | parameter | data-type | data-structure | syntax | string-formatting | application | recursion | debugging | string-method | exception | method | int | else-statement | mathematics | interpreter | arithmetic-expression | format | class-and-object | lambdas | def | counter | control-statement | syntax-error | type-conversion | mapping-function | operand | touples | bitwise-operator | sorting | name-mangling | slicing | input-function | data_structure | round-function | built-in-function | sum() | lambda | inheritance | conditional-statement | operations | min-function | print-statement | package-management | match | rollback | id-function | expand-tab | collection | boolean | filter-function | threading | array | statement | syntaxerror | class | for | identifier | encapsulation | stack | file | expression | binary | python | variable | descriptors | pandas | copy | dicts | magic-method | center | init | class-and-instance-variable | async | complex-number | memory | list-method | regular-expression | pickling-&-unpickling | access-modifier | choice | multithreading | yield | staticmethod | math-copysign | precedence | namespace | software-design | set | string-concatenation | formal-and-actual-parameter | conversion | list-slicing | list-indexing | iterator | string-slicing | oop | constructor | generators-in-python | exception-handling | logical-operation | string-formatting | shallow-copy | list | sys-module | gil | min-max-function | compute | built-in-function | comparison | map-function | dictionary ...