Question: python code for import sys # todo 1 : create a string with your matric card number with name ` S ` . Extract only

python code for import sys
# todo 1: create a string with your matric card number with name `S`. Extract only the numeric digits and print.
# todo 2: Convert string `S` into a list with name `L`
# todo 3: Convert string `S` into a tuple with name `T`
mem_size_L = sys.getsizeof(L)
mem_size_T = sys.getsizeof(T)
# todo 4: compare `mem_size_L` and `mem_size_T`, see which data structure is more memory efficient

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!