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