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