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


complex(1+2j)

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