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