How can I increment these list string elements in a for loop?
mylist = ['and1', 'hello', 'world']
#some for loop
for i in np.linspace(start,stop,num_samples)
print('This is %s' % mylist[0])
This gives output:
This is and1
This is and1
This is and1
My desired output is:
This is and1
This is hello
This is world
Is there an easy way to do this in python?