I have two python lists, namely,
num = ['0', '1']
and
salpha = ['a', 'b', 'c', 'd', 'e']
and\
I want the result to be,\
0a
0b
0c
0d
0e
0@
0#
1a
1b
1c
1d
1e
1@
1#\
How can I do that..??
You can try this code:
num = ['0', '1']
salpha = ['a', 'b', 'c', 'd', 'e']
for i in num:
for j in salpha:
print(i+j)
The code is:
num = ['0', '1']
salpha = ['a', 'b', 'c', 'd', 'e']
for i in num:
for j in salpha:
print(i+j)