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