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