<reponame>Drv4MC/ICS3-Python-Notes


word ="elephant"
blanks= "_"*len(word)

print(word)
print(blanks)


#Loop through a string by a letter
for letter in word:
    print(letter)
    
#Loop through a string by index
for i in range(len(word)):
    print(i, word[i], blanks[i])
    
    



word ="elephant"
blanks= "_"*len(word)

print(word)
print(blanks)


#Loop through a string by a letter
for letter in word:
    print(letter)
    
#Loop through a string by index
for i in range(len(word)):
    print(i, word[i], blanks[i])
#Loop through a string by a letter #Loop through a string by index