def main(): list1 = ['orange', 'grape', 'banana', 'waxberry', 'pitaya'] for index, val in enumerate(list1): print('%d: %s' % (index, val)) if __name__ == '__main__': main()