From 2b8e8ce90cf4b37c02c71ab47349cb5abe607ab8 Mon Sep 17 00:00:00 2001 From: ByMARLin <42653890+ByMARLin@users.noreply.github.com> Date: Fri, 16 Nov 2018 21:07:42 +0100 Subject: [PATCH] Added .encode() to casting (#916) .encode() turns string into byte-like object. --- python.md | 1 + 1 file changed, 1 insertion(+) diff --git a/python.md b/python.md index c59fdde3b..024902f9c 100644 --- a/python.md +++ b/python.md @@ -78,6 +78,7 @@ title: Python float(str) str(int) str(float) + 'string'.encode() ### Comprehensions