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