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