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