Level 10 : What will be the content of s after execution?


s = {1, 2, 3}
s.add(4)
s.discard(3)

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