get first 10 values of a list code example
Example 1: python get first n elements of list
l = [1, 2, 3, 4, 5]
print(l[:3])
Example 2: how to find first value of an list
// Python
list = [1,2,3]
firstdigit = list[0] // 1
list = ['Hello', 'bye', 'Adios']
firstvalue = list[0] // 'Hello'