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