Level 5 : what is the output for the below code?


set_a = {1, 2, 3}
set_b = {2, 3, 4}
result = set_a - set_b
print(result)

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