Level 9 : What is output for following code


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

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