Level 1 : Choose the correct option for the bellow code.


list1 = ['ant', 'bats', 'cat']
list1[1] = 'dog'
print(list1)

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