Skip to content

Commit

Permalink
Update hash.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Aug 6, 2024
1 parent 6775088 commit 3998b19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cheatsheets/python/hash.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Basic

Use a builtin `hash` function.
Use the builtin `hash` function.

Only works on hashable types - immutable values so not a list.

Expand Down Expand Up @@ -46,7 +46,6 @@ e.g. to use the SHA256 algorithm.
```python
import hashlib


hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()
# 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
```

0 comments on commit 3998b19

Please sign in to comment.