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