I have two lists which have unknown number of elements. One list containing names and another castes
'''Like This'''
names = ['name1','name2',........'name99']
castes = ['cast1','cast2',........'cast99']
And i want print like this:
Hello Name1 cast1.
Hello Name2 Cast2.
.
.
.
.
.
Hello Name99 Cast99
I have tried this but it doesnot work.
for i in names:
for j in castes:
print('Hello '+ i + j)
But it prints randomly. like...
Hello Name1 Cast1
Hello Name1 Cast2
.
.
Hello Name1 Cast99
.
.
.
Hello Name2 Cast1
Hello Name2 Cast2
.
.
Hello Name3 Cast99
.
.
.