New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What is the size of string "amy's"?
3 Answers
+ 7
import sys
s = "amy's"
print(sys.getsizeof(s))
print(s.__sizeof__())
0
4
- 1
Agrim Yadava Why don't you test it in the code playground to know?