update insertion_sort

This commit is contained in:
Rohit Tanwar
2018-02-20 17:08:10 +05:30
parent 9e7878b00d
commit 7cc78ca4c4
28 changed files with 1252 additions and 1222 deletions

View File

@@ -1,16 +1,16 @@
### is_upper_case
Checks if a string is upper case.
Convert the given string to upper case, using `str.upper()` method and compare it to the original.
```python
def is_upper_case(str):
return str == str.upper()
```
```python
is_upper_case('ABC') # True
is_upper_case('a3@$') # True
is_upper_case('aB4') # False
### is_upper_case
Checks if a string is upper case.
Convert the given string to upper case, using `str.upper()` method and compare it to the original.
```python
def is_upper_case(str):
return str == str.upper()
```
```python
is_upper_case('ABC') # True
is_upper_case('a3@$') # True
is_upper_case('aB4') # False
```