import pandas as pd
import numpy as np
np.random.seed(1)
a = pd.Series(np.random.randint(size=5, low=1, high=10))
print(a, '\n')
print(a[0], '\n')
print(a[1:3], '\n')
print(a[::2], '\n')

8c72b22bbd77552df47ed0e36d07874ce023f6ea
<mask token>

<mask token>
np.random.seed(1)
<mask token>
print(a, '\n')
print(a[0], '\n')
print(a[1:3], '\n')
print(a[::2], '\n')

<mask token>
np.random.seed(1)
a = pd.Series(np.random.randint(size=5, low=1, high=10))
print(a, '\n')
print(a[0], '\n')
print(a[1:3], '\n')
print(a[::2], '\n')

import pandas as pd
import numpy as np
np.random.seed(1)
a = pd.Series(np.random.randint(size=5, low=1, high=10))
print(a, '\n')
print(a[0], '\n')
print(a[1:3], '\n')
print(a[::2], '\n')
