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 | 1736+ Python FAQs | Share
while-and-for-loop | file_handling | virtual-environment | multithreading | formal-and-actual-parameter | polymorphism | built-in-function | decorator | class-and-inheritance | dictionaries | stack | file-handling | goto-function | import-method | random-function | methods | lambda | copy | recurssion | precedence | data-structures | list-method | bitwise | pandas | thread | comprehension | method | compute | zip | comment | python_version | asyncio | fabs-function | encoding | descriptors | identity-operator | loop | generators | join | version | built-in-function | input-function | operator | list-vs-tuple | oop | return-statement | matplotlib | filter | conditional-statement | pseudocode | turtle | mathematics | __init_subclass__ | design-principle | access-modifier | functions | choice | command-line-parsing | filter-function | while-else-loop | keyword | pickling-&-unpickling | head-and-tail | type-conversion | round-function | oops | string-method | sum() | destructor | global-variable | string-formatting | statement | lists | expression | feature | while-loop | function-and-scope | gil | numeric | data-type | logical-operation | collections | input-function | lambdas | type-conversion | global | __all__-attribute | inherit | string-concatenation | invalid-list | pep | class-and-instance-variable | indexing | counter | name-mangling | version-check | data_structure | swapping | recursion | basic | counter-function | parameter | max-min | split | range | expand-tab | list-mutation | identifier | list-indexing | staticmethod | library | default-mutable-argument | python-repl | heap-memory | odd-number | print-statement | docstring | control-statement | mysql | operations | bitwise-operator | classes | namespace | virtual-environment | conversion | data-structure | class-and-object | integer | __future__ | global-variable | escape-operator | datatype | function-argument | syntax-error | input | update | print | zfill-function | loop-control | list-join | typeerror | enumerate() | match | binary | yield | call | arithmetic-operation | memory-management | string-formatting | overflow | python-module | sys | syntaxerror | decimal | magic-method | numpy | package-management | syntax-error | postfix | binary-operation | control-flow | list-comprehension | operator-and | min-max-function | multiple-inheritance | string-method | datetime | frozenset | immutable-data-type | syntax | scientific-notation | operator-overloading | global-keyword | immutability | indentation | error | id-function | software-design | asyncio-module | def | string-slicing | object-attribute | lambda-function | sum-function | sorting | data-structure | with-statement | slicing | file-handling | list | objects | raise | dictionary | built-in | regex | else-statement | center | list-operation | min-function | list-comprehension | mathematical-function | bitwise-operator | application | python-history | tuple | assignment-operator | list-slicing | collection | string-manipulation | variable | python-django | math | namedtuple | attribute | data-type | benefit | condition | control-flow | map-function | memory | arithmetic-expression | iterable | set | string | functional-programming | static-method | matrix | generators-in-python | type_conversion | boolean | operand | python | iterator | math-copysign | constructor | mutable | exponentiation | floating-point-precision | logical-operator | rollback | file | multiprocessing | threading | exception-handling | error-handling | round | boolean-and-non-boolean | higher-order-function | format | deep-copy | encapsulation | sys-module | mapping-function | sorted | init | module | random | touples | operator-or | class | debugging | comparison | implementation | interpreter | matrix-list-comprehension | async | complex-number | function | string-iteration | exception | tuple-unpacking | append | nested-loop | conditional-statement | assert | logical-operator | generator | identity-operator | slice | context-manager | zip-function | precedence-and-associativity | dicts | string-slicing | array | set-operation | exception-handling | shallow-copy | regular-expression | loops | inheritance | for | factorial-function | operators | installation | complex | int ...