File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 42
42
new_string = old_string .replace ("YOUR_NAME" , "Kay" )
43
43
44
44
# Uncomment this next line to see the result
45
- # print(new_string)
45
+ print (new_string )
46
46
47
47
# You'll notice here that the function is coming in a
48
48
# different place. Let's compare `len` and `replace`:
80
80
81
81
def make_uppercase (string ):
82
82
# Return the string in uppercase
83
- pass
83
+ return string . upper ()
84
84
85
85
check_that_these_are_equal (
86
86
make_uppercase ("hello" ), "HELLO" )
@@ -97,7 +97,7 @@ def make_uppercase(string):
97
97
98
98
def make_lowercase (string ):
99
99
# Return the string in lowercase
100
- pass
100
+ return string . lower ()
101
101
102
102
check_that_these_are_equal (
103
103
make_lowercase ("HELLO" ), "hello" )
@@ -115,7 +115,7 @@ def make_lowercase(string):
115
115
def strip_whitespace (string ):
116
116
# Return the string with any whitespace removed from
117
117
# the start and end
118
- pass
118
+ return string . strip ()
119
119
120
120
check_that_these_are_equal (
121
121
strip_whitespace ("hello " ), "hello" )
You can’t perform that action at this time.
0 commit comments