enumerate string initial iterator

Question

Enumerate “I speak Python.”

Set initial iterator to 1.

in progress 0
YashikaKhurana 4 years 1 Answer 683 views Master 0

Answer ( 1 )

  1. ob=enumerate(s,1)
    print(list(ob))

Leave an answer

Browse
Browse