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