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

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