Use the upper()
method to transform a whole string into uppercase.
regular_text = "This is a regular text."
upper_case_text = regular_text.upper()
print(regular_text)
#This is a regular text.
print(upper_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, upper_case_text
in this case.