Files
30-seconds-of-code/test/byte_size/byte_size.py
Rohit Tanwar 385bf72a3e readme-script
2018-02-20 22:42:11 +05:30

2 lines
62 B
Python

def byte_size(string):
return(len(string.encode('utf-8')))