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