Last active
January 13, 2022 15:09
-
-
Save CrimsonScythe/2f92f8aef62ea7c9b1811dcf0bbf6d8a to your computer and use it in GitHub Desktop.
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 typing import List | |
def toUpper(x: str): | |
return x.capitalize() | |
def get_stuff(item:str, fridge:List[str]): | |
fridge.append(item) | |
return list(map(toUpper, fridge)) | |
print(get_stuff("orange", ["apple", "grape", "pear"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment