Level 10 : Replace the last string in a list with an exclamation(!)


x = ["Python"]

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