Skip to content

Commit 1e541b3

Browse files
ErikSchierboomcmccandless
authored andcommitted
Use consistent headings in documentation
1 parent 5655a9d commit 1e541b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

exercises/concept/strings/.docs/hints.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
### General
1+
## General
22

33
- The [Python documentation for `str`][python-str-doc] has an overview of the Python `str` type.
44

5-
### 1. Get message from a log line
5+
## 1. Get message from a log line
66

77
- Strings in Python have [lots of convenient instance methods][str-type-methods] for cleaning, splitting, manipulating, and creating new strings. Extracting values from a string could be done by splitting it based on a substring, for example.
88

9-
### 2. Get log level from a log line
9+
## 2. Get log level from a log line
1010

1111
- Strings also have methods that help convert letters from lower to uppercase and vice-versa.
1212

13-
### 3. Reformat a log line
13+
## 3. Reformat a log line
1414

1515
Strings are immutable, but can be combined together to make new strings, or have elements replaced. This goal can be accomplished by using string methods, or operators like `+` or `+=` (which are overloaded to work with strings).
1616
Python also has a concept of string formatting, like many other languages.

exercises/concept/strings/.docs/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ There are three different log levels:
1010

1111
You have three tasks, each of which will take a log line and ask you to do something with it.
1212

13-
### 1. Extract a message from a log line
13+
## 1. Extract a message from a log line
1414

1515
Implement a function to return a log line's message:
1616

@@ -26,7 +26,7 @@ The message should be trimmed of any whitespace.
2626
'Invalid operation.'
2727
```
2828

29-
### 2. Change a message's loglevel.
29+
## 2. Change a message's loglevel.
3030

3131
Implement a function that replaces a log line's current log level with a new one:
3232

@@ -35,7 +35,7 @@ Implement a function that replaces a log line's current log level with a new one
3535
'[ERROR]: Fatal Error.'
3636
```
3737

38-
### 3. Reformat a log line
38+
## 3. Reformat a log line
3939

4040
Implement a function that reformats the log line, putting the message first and the log level after it in parentheses:
4141

0 commit comments

Comments
 (0)