Skip to content

Commit 680f34c

Browse files
authored
Update Day_19.md
1 parent 2b54c05 commit 680f34c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Status/Day_19.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ t = zlib.compress(s)
4444
print t
4545
print zlib.decompress(t)
4646
```
47-
47+
---
48+
```python
49+
'''Solution by: anas1434
50+
'''
51+
s = 'hello world!hello world!hello world!hello world!'
52+
# In Python 3 zlib.compress() accepts only DataType <bytes>
53+
y = bytes(s, 'utf-8')
54+
x = zlib.compress(y)
55+
print(x)
56+
print(zlib.decompress(x))
57+
```
4858
---
4959

5060
# Question 77

0 commit comments

Comments
 (0)