word ="programming"
print (word)
# Canvert to ALL CAPS. (Method: upper)
word.upper()
word= word.upper()
print (word)
# Convert the first letter to upper case and the others letters to lower case (Method:capitalize)
word.capitalize()
word=word. capitalize()
print (word)
#Convert everything to lower case (Method: lower)
word=word. lower()
print (word)
# Replace some letters with others (Method: replace )
word=word. replace ("i", "e")
print (word)
word=word. replace ("i", "e")
print (word)
# Positions and indexe:[]
print (word[0])
print (word[1])
print (word[7])
print (word[10])
# Count the number of vowels or letters in a variable (Method:count)
word=word. count ("n")
print(word)
To embed this project on your website, copy the following code and paste it into your website's HTML: