i am forcing myself to properly learn python, instead of just hacking on it when i want something. going thru a book, and i want to process in a for loop, thats working with a list:
magicians = ['merlin', 'raistlin', 'gilgamesh', 'gandolf', 'sauron']
for mage in magicians:
#print(mage)
#print(mage.title() + ", is now a master and a planwalker")
s = mage.find("merlin")
print(s)
print("script has Finished...")
can't find, the way to search for the string as it process in the for loop. so i can mess with it. (maybe i am slow :))
what would be a good way to find which item in the list is being processed so i can do something different with each one?