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