Level 9 : What is output for following code


y = [4, 5,1j]
y.sort()

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