Update page 'Day 1 homework - Xuanyi Wang (Sloetjes)'
@@ -95,21 +95,21 @@ print("Size of bytes:", sys), size.getsizeof(b))
|
|||||||
```
|
```
|
||||||
###### Output:
|
###### Output:
|
||||||
```
|
```
|
||||||
Size of s1: 60
|
Size of s: 60
|
||||||
Size of s2: 44
|
Size of b: 44
|
||||||
```
|
```
|
||||||
### Emoji Case:
|
### Emoji Case:
|
||||||
```
|
```
|
||||||
s1 = "😊"
|
e1 = "😊"
|
||||||
s2 = "👩👩👧👧"
|
e2 = "👩👩👧👧"
|
||||||
|
|
||||||
print("Size of s1:", sys.getsizeof(s1))
|
print("Size of e1:", sys.getsizeof(e1))
|
||||||
print("Size of s2:", sys.getsizeof(s2))
|
print("Size of e2:", sys.getsizeof(e2))
|
||||||
```
|
```
|
||||||
###### Output:
|
###### Output:
|
||||||
```
|
```
|
||||||
Size of s1: 80
|
Size of e1: 80
|
||||||
Size of s2: 104
|
Size of e2: 104
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user