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


x = ["Python"]

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