Skip to content

Instantly share code, notes, and snippets.

@sudosanet
Created November 26, 2019 14:11
Show Gist options
  • Select an option

  • Save sudosanet/b401b94f523d15b3c54254de96baa597 to your computer and use it in GitHub Desktop.

Select an option

Save sudosanet/b401b94f523d15b3c54254de96baa597 to your computer and use it in GitHub Desktop.
def get_campus(s=""):
if s == "":
return "Kamata/Hachioji"
elif s.upper() in ["BS","CS","MS","ES"]:
return "Hachioji"
elif s.upper() in ["HS","DS"]:
return "Kamata"
else:
return "Not found."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment