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