for index, value in enumerate(mylist):
        print('{0}: {1}'.format(index, value))
      
      Python language logo

      Iterate over index/value of a list

      Python public recipes

      Shortcut: list.enumerate

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.