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