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