Level 10 : What will be the output of the following code?


d = {0, 1, 2}  
for x in d:  
    print(x)

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