I'm trying to use a for-loop to create a lot of plots. Long story aside, I need to create a script that does something similar to this example:
text1="Hello"
text2="my"
text3="name"
text4="is"
text5="John"
for i in range(0,6):
print(text{i})
Which would output the following:
#Output:
'Hello'
'my'
'name'
'is'
'John'
Is this possible in Python? Thanks!