Level 10 : What is the output of the following code?


dictt = {1:2, 3:4, 5:6}
print(sorted(dictt.values()))

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