My goal is to create a one liner to produce a following list:
list_100 = ['ch1%.2d' % x for x in range(1,6)]
list_200 = ['ch2%.2d' % x for x in range(1,6)]
final_list = list_100 + list_200
[ch101,ch102,ch103,ch104,ch105, ch201,ch202,ch203,ch204,ch205]
is there some way to do that in one line:
final_list = ['ch%.1d%.2d' % (y for y in range(1,3), x for x in range(1,6)]
final_list=['ch1%.2d' % x for x in range(1,6)]+['ch2%.2d' % x for x in range(1,6)]?