Skip to content

Instantly share code, notes, and snippets.

@CrimsonScythe
Last active January 13, 2022 15:09
Show Gist options
  • Save CrimsonScythe/2f92f8aef62ea7c9b1811dcf0bbf6d8a to your computer and use it in GitHub Desktop.
Save CrimsonScythe/2f92f8aef62ea7c9b1811dcf0bbf6d8a to your computer and use it in GitHub Desktop.
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