Level 1 : what is getattr() used for?

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