i have list with lists of strings looks like
allyears
#[['1916'], ['1919'], ['1922'], ['1912'], ['1924'], ['1920']]
i need to have output like this:
#[1916, 1919, 1922, 1912, 1924, 1920]
have been try this:
for i in range(0, len(allyears)):
allyears[i] = int(allyears[i])
but i have error
>>> TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'