Level 1 : What does the add() method do in a set?

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