Created
September 6, 2022 14:28
-
-
Save acbart/f0d00f2d6af7774a5ad4f29e9c1961ba to your computer and use it in GitHub Desktop.
Simple code, easy to trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bakery import assert_equal | |
name = "Captain" | |
def shorten(word: str) -> str: | |
return word[:3] | |
assert_equal(shorten(name), "Cap") | |
assert_equal(shorten("Babbage"), "Bab") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment