Second assignment
Contents
42.4. Second assignment#
42.4.1. str.upper()
, str.lower()
, str.title()
#
Fill ____
pieces below to have correct values for lower_cased
, upper_cased
and title_cased
variables.
original_string = 'Ocademy is so COOL!'
# Your code here:
lower_cased = original_string.____
upper_cased = ____.upper()
title_cased = ____.____
# Let's verify that the implementation is correct by running the cell below
# `assert` will raise `AssertionError` if the statement is not true.
assert lower_cased == 'ocademy is so cool!'
assert upper_cased == 'OCADEMY IS SO COOL!'
assert title_cased == 'Ocademy Is So Cool!'