Level 1 : what is getattr() used for?

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