Use the lower()
method to transform a whole string into lowercase.
regular_text = "This is a Regular TEXT."
lower_case_text = regular_text.lower()
print(regular_text)
#This is a Regular TEXT.
print(lower_case_text)
#this is a regular text.
Notice that the original regular_text
variable remains unchanged, thus you need to assign the return of the method to a new variable, lower_case_text
in this case.