I have read a file in and converted each line into a list. A sample of the list looks like:
['15', '2', '0'], ['63', '3', '445', '456' '0'], ['23', '4', '0']
i want to retrieve the first number from each list and convert it to and integer so when i carry out the type function i.e.
type(x)
<type 'int'> is returned
Also when i print x the integers are printed individually rather than joined. i.e. if i took the first 3 numbers from the list above the numbers are not printed as:
156323