Hi,
Facing challenges with the sample function and my results do not match with my expected output, hence the error attached:
My results:
Sampling:
list of sampled indices:
[23, 16]
list of sampled characters:
[‘i’, ‘\n’]
Expected output:
Sampling:
list of sampled indices:
[23, 16, 26, 26, 24, 3, 21, 1, 7, 24, 15, 3, 25, 20, 6, 13, 10, 8, 20, 12, 2, 0]
list of sampled characters:
['w', 'p', 'z', 'z', 'x', 'c', 'u', 'a', 'g', 'x', 'o', 'c', 'y', 't', 'f', 'm', 'j', 'h', 't', 'l', 'b', '\n']
Thanks
Sheila