Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 024_string_operations.py #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 024_string_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
new_string = old_string.replace("YOUR_NAME", "Kay")

# Uncomment this next line to see the result
# print(new_string)
print(new_string)

# You'll notice here that the function is coming in a
# different place. Let's compare `len` and `replace`:
Expand Down Expand Up @@ -73,14 +73,14 @@

# == Exercise One ==

print("")
print("uppercase")
print("Function: uppercase")

# Search for 'python make string uppercase'

def make_uppercase(string):
# Return the string in uppercase
pass
assert actual == expected, f"Expected {expected}, but got {actual}"

check_that_these_are_equal(
make_uppercase("hello"), "HELLO")
Expand Down