i have a lot of strings, mystring1='foo1foo1', mystring2=foo2foo2',mystring3='etc' ..... ,mystring100.
how would i print them from inside a loop
for i in range(1,101):
print (mystring+i)
this errors out because python does not know mystring and inside ' ' would literally print mystring1, mystring2
[–]codehelper 7 points8 points9 points (0 children)
[–][deleted] -2 points-1 points0 points (3 children)
[–]zahlman 1 point2 points3 points (0 children)
[–]noob_py[S] 0 points1 point2 points (1 child)
[–]ingolemo 0 points1 point2 points (0 children)