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