Skip to content

Commit 1618e5d

Browse files
committedDec 19, 2023
Add Task headers
1 parent a437d65 commit 1618e5d

File tree

10 files changed

+10
-1
lines changed

10 files changed

+10
-1
lines changed
 

‎Strings/Basic string methods/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Detailed information about all string methods can be found <a href="https://docs
99

1010
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6842).
1111

12+
### Task
1213
Print `monty_python` in upper case using an appropriate string method.
1314

1415
<div class='hint'>Pay attention to how the <code>lower()</code> method is used in our code.</div>

‎Strings/Character escaping/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ files:
33
- name: character_escaping.py
44
visible: true
55
placeholders:
6-
- offset: 157
6+
- offset: 205
77
length: 47
88
placeholder_text: ???
99
- name: tests/__init__.py

‎Strings/Character escaping/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ You can learn more about escaping from <a href="https://docs.python.org/3/refere
2020

2121
For more structured and detailed information, you can also refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/7130).
2222

23+
### Task
2324
Print out the following text using one string:
2425
```text
2526
The name of this ice cream is "Sweet'n'Tasty"

‎Strings/F-strings/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ For more information about formatted string literals you can refer to <a href="h
3131

3232
For more structured and detailed information, you can also refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6037).
3333

34+
### Task
3435
Try creating an f-string yourself. Also try running the code to see what it prints.
3536

3637
<div class="hint">The value assigned to the <code>name</code> variable has to be a string, so it needs to be in quotes,

‎Strings/In operator/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
If you want to check whether a string contains a specific letter or a substring,
44
you can use the `in` keyword.
55

6+
### Task
67
Check if there is `"ice"` in `"ice cream"` and assign the result to the variable `contains`.
78

89
<div class="hint">Use the <code>in</code> operator.</div>

‎Strings/String formatting/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ or decimal values.
1515
1616
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6037).
1717

18+
### Task
1819
Tell PyCharm how old you are (using digits).
1920

2021
<div class='hint'>Use the <code>%d</code> special symbol.</div>

‎Strings/String indexing/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Note that since `-0` is the same as `0` , negative indices start from `-1`.
1111

1212
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6189).
1313

14+
### Task
1415
Use the index operator to get the letter `"P"` from `"Python"` .
1516

1617
<div class="hint">Note that indices start with 0.</div>

‎Strings/String length/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ print(type(a)) # <class 'float'>
1717

1818
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/5814).
1919

20+
### Task
2021
Get the first half of the string stored in the variable `phrase`.
2122
Note: when getting the index, remember about type conversion.
2223

‎Strings/String negative indexing/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from the end of a string.
55

66
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6189).
77

8+
### Task
89
Use a negative index to get the `'!'` sign from `long_string`.
910

1011
<div class='hint'>Use a negative index.</div>

‎Strings/String slicing/task.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ str[:] # a copy of the whole array
2626

2727
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6177).
2828

29+
### Task
2930
Use slicing to get `"Python"` from the `monty_python` variable.
3031

3132
<div class='hint'>You can leave one of the indices empty.</div>

0 commit comments

Comments
 (0)