Spaces:
Running
Running
re-run file
Browse files
Python/phase_1/string_manipulation.py
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
|
| 8 |
import marimo
|
| 9 |
|
| 10 |
-
__generated_with = "0.10.
|
| 11 |
app = marimo.App()
|
| 12 |
|
| 13 |
|
|
@@ -35,7 +35,6 @@ def _(mo):
|
|
| 35 |
```
|
| 36 |
|
| 37 |
Below is an example string.
|
| 38 |
-
|
| 39 |
"""
|
| 40 |
)
|
| 41 |
return
|
|
@@ -88,7 +87,7 @@ def _(text):
|
|
| 88 |
|
| 89 |
@app.cell(hide_code=True)
|
| 90 |
def _(mo):
|
| 91 |
-
mo.md("Use string methods and the `in` operator to find things in strings.")
|
| 92 |
return
|
| 93 |
|
| 94 |
|
|
@@ -115,12 +114,13 @@ def _(mo):
|
|
| 115 |
mo.md(
|
| 116 |
"""
|
| 117 |
## Inserting values in strings
|
| 118 |
-
|
| 119 |
Modern Python uses f-strings to insert values into strings. For example,
|
| 120 |
check out how the next cell greets you (and notice the `f''''`)!
|
| 121 |
|
| 122 |
Try changing the value of `my_name`, and watch how the greeting changes.
|
| 123 |
-
|
|
|
|
| 124 |
return
|
| 125 |
|
| 126 |
|
|
|
|
| 7 |
|
| 8 |
import marimo
|
| 9 |
|
| 10 |
+
__generated_with = "0.10.12"
|
| 11 |
app = marimo.App()
|
| 12 |
|
| 13 |
|
|
|
|
| 35 |
```
|
| 36 |
|
| 37 |
Below is an example string.
|
|
|
|
| 38 |
"""
|
| 39 |
)
|
| 40 |
return
|
|
|
|
| 87 |
|
| 88 |
@app.cell(hide_code=True)
|
| 89 |
def _(mo):
|
| 90 |
+
mo.md("""Use string methods and the `in` operator to find things in strings.""")
|
| 91 |
return
|
| 92 |
|
| 93 |
|
|
|
|
| 114 |
mo.md(
|
| 115 |
"""
|
| 116 |
## Inserting values in strings
|
| 117 |
+
|
| 118 |
Modern Python uses f-strings to insert values into strings. For example,
|
| 119 |
check out how the next cell greets you (and notice the `f''''`)!
|
| 120 |
|
| 121 |
Try changing the value of `my_name`, and watch how the greeting changes.
|
| 122 |
+
"""
|
| 123 |
+
)
|
| 124 |
return
|
| 125 |
|
| 126 |
|