A Python list has ['12:30','12:45']
and I want to access the '12:30'
for the first iteration, and on the second iteration I should get '12:45'
.
my_list=['12:30','12:45']
for each_value in my_list:print(each_value[0])
The expected result is '12:30'
but the actual output is '1'
.