Level 9 : What is the output of the following code?


str = 'Datazeneral'
str[2] = 'z'
print(str)

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