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


x = ["Python"]

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