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


x = ["Python"]

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