Lower
Change to lower characters
#! /usr/bin/env python3
print()
sentence = "Her cat's name is Luna"
lower_sentence = sentence.lower()
print("Sentence: " + sentence)
print("Lower: " + lower_sentence)
print()
sentence_list = [ 'Could you pass me the TV remove?',
'It is Impossible to find this hotel',
'Want to go for dinner on Tuesday'
]
lower_sentence_list = [x.lower() for x in sentence_list]
print ("Sentence_List", end = " ")
print(sentence_list)
print('lower: ', end = " ")
print(lower_sentence_list)
C:\Users\Win10x64i7\PycharmProjects\Dataprep\.venv\Scripts\python.exe C:\Users\Win10x64i7\PycharmProjects\Dataprep\PrepData.py
Sentence: Her cat’s name is Luna
Lower: her cat’s name is luna
Sentence_List [‘Could you pass me the TV remove?’, ‘It is Impossible to find this hotel’, ‘Want to go for dinner on Tuesday’]
lower: [‘could you pass me the tv remove?’, ‘it is impossible to find this hotel’, ‘want to go for dinner on tuesday’]
Process finished with exit code 0