remove unnecessary snippets
This commit is contained in:
48
README.md
48
README.md
@ -116,8 +116,6 @@
|
||||
* [`capitalize_every_word`](#capitalize_every_word)
|
||||
* [`decapitalize`](#decapitalize)
|
||||
* [`is_anagram`](#is_anagram)
|
||||
* [`is_lower_case`](#is_lower_case)
|
||||
* [`is_upper_case`](#is_upper_case)
|
||||
* [`kebab`](#kebab)
|
||||
* [`palindrome`](#palindrome)
|
||||
* [`snake`](#snake)
|
||||
@ -1760,52 +1758,6 @@ is_anagram("anagram", "Nag a ram") # True
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### is_lower_case
|
||||
|
||||
Checks if a string is lower case.
|
||||
|
||||
Convert the given string to lower case, using `str.lower()` and compare it to the original.
|
||||
|
||||
```py
|
||||
def is_lower_case(string):
|
||||
return string == string.lower()
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```py
|
||||
is_lower_case('abc') # True
|
||||
is_lower_case('a3@$') # True
|
||||
is_lower_case('Ab4') # False
|
||||
```
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### is_upper_case
|
||||
|
||||
Checks if a string is upper case.
|
||||
|
||||
Convert the given string to upper case, using `str.upper()` and compare it to the original.
|
||||
|
||||
```py
|
||||
def is_upper_case(string):
|
||||
return string == string.upper()
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```py
|
||||
is_upper_case('ABC') # True
|
||||
is_upper_case('a3@$') # False
|
||||
is_upper_case('aB4') # False
|
||||
```
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### kebab
|
||||
|
||||
Converts a string to kebab case.
|
||||
|
||||
Reference in New Issue
Block a user