Update formatting
This commit is contained in:
@ -7,7 +7,7 @@ lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
|
||||
Returns the length of a string in bytes.
|
||||
|
||||
- Use `str.encode('utf-8')` to encode the given string and return its length.
|
||||
- Use `str.encode()` to encode the given string and return its length.
|
||||
|
||||
```py
|
||||
def byte_size(s):
|
||||
|
||||
Reference in New Issue
Block a user