Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate over every alternate character in string python

sentence = "The quick brown fox jumped over the lazy dog."

sentence[::2]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #alternate #character #string #python
ADD COMMENT
Topic
Name
6+8 =