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