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