From 3998b192890c14aeb52827abc7e8e3f9bf75043e Mon Sep 17 00:00:00 2001 From: Michael Currin <18750745+MichaelCurrin@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:54:54 +0200 Subject: [PATCH] Update hash.md --- cheatsheets/python/hash.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cheatsheets/python/hash.md b/cheatsheets/python/hash.md index 194a52f96..c021a93db 100644 --- a/cheatsheets/python/hash.md +++ b/cheatsheets/python/hash.md @@ -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. @@ -46,7 +46,6 @@ e.g. to use the SHA256 algorithm. ```python import hashlib - hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest() # 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' ```