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


x = ["Python"]

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