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


set_ = {8,8,9}
print(set_)

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