Level 9 : What will be the output of the following Python code?


a=[(6,2),(5,4),(7,9)]
a.sort()
a

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