add cpntributor_database

This commit is contained in:
Rohit Tanwar
2018-02-20 14:39:09 +05:30
parent d04f0260fc
commit 9e26f0ba73
139 changed files with 12881 additions and 12857 deletions

View File

@ -1,15 +1,15 @@
### byte_size
Returns the length of a string in bytes.
`utf-8` encodes a given string and find its length.
```python
def byte_size(string):
return(len(string.encode('utf-8')))
```
```python
byte_size('😀') # 4
byte_size('Hello World') # 11
### byte_size
Returns the length of a string in bytes.
`utf-8` encodes a given string and find its length.
```python
def byte_size(string):
return(len(string.encode('utf-8')))
```
```python
byte_size('😀') # 4
byte_size('Hello World') # 11
```