Skip to content

Commit

Permalink
Added more stuff about python
Browse files Browse the repository at this point in the history
  • Loading branch information
mraza007 committed Dec 25, 2018
1 parent c699067 commit d65be7c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions markdown-version/lambdas.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,16 @@ print(a)
b = max([1,2,3,4,5])
print(b)
```

### Reverse
- This function reverses list,string or a iterator

```python
x = [1,2,3,4,5]
x.reverse()
# This will reverse a list

for char in reversed("Hello"):
print(char)
# This will print out reversed hello
```

0 comments on commit d65be7c

Please sign in to comment.