Hi i have a simplified example of my problem.
i would like to get an output of
1
a
b
2
c
3
d
e
f
4
g
5
h
I have tried different variations but can figure out the logic. My code is below. Thanks for your help in advance. I am trying to do it without using numpy or panda. I am using python3.4
num = ["1" , "2" ,"3" , "4" , "5" ]
let = [["a","b"],["c"],["d","e","f"],["g"],["h"]]
for x in num :
print(x)
for y in let :
print(y)
zipBoth = zip(num,let)
for x,y in zipBoth :
print(x)
print(y)