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


x = ["Python"]

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