+ 1

What is the size of string "amy's"?

10th Mar 2019, 12:51 PM
Agrim Yadava
Agrim Yadava - avatar
3 Antworten
+ 7
import sys s = "amy's" print(sys.getsizeof(s)) print(s.__sizeof__())
10th Mar 2019, 12:57 PM
Mert Yazıcı
Mert Yazıcı - avatar
0
4
30th Jun 2023, 3:01 PM
All in One gaming
All in One gaming - avatar
- 1
Agrim Yadava Why don't you test it in the code playground to know?
10th Mar 2019, 12:56 PM
portpass