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


complex(1+2j)

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