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


x = ["Python"]

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