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