How to iterate over each string in a list of strings and operate on it's elements

前端 未结 8 1981
别跟我提以往
别跟我提以往 2020-12-25 13:00

Im new to python and i need some help with this.

TASK : given a list --> words = [\'aba\', \'xyz\', \'xgx\', \'dssd\', \'sdjh\']

i need to com

8条回答
  •  清酒与你
    2020-12-25 13:07

    for i,j in enumerate(words): # i---index of word----j
         #now you got index of your words (present in i)
         print(i) 
    

提交回复
热议问题