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