Level 1 : What will be the output of the following Python function?


complex(1+2j)

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