String indexing : String Index : String PYTHON examples


PYTHON examples » String » String Index »

 

String indexing


String indexing: Random Access
 
import random

word = "index"
print "The word is: ", word, "n"

high = len(word)
low = -len(word)

for i in range(10):
    position = random.randrange(low, high)
    print "word[", position, "]t", word[position]

           
         
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo String
» String Index