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