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