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


x = ["Python"]

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