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


a=(2,3,1,5)
a.sort()
 a

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