Skip to content

Instantly share code, notes, and snippets.

@nyunerrr
Created May 22, 2020 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyunerrr/bfa389609ddccb6f35da4f8cad8ee6e7 to your computer and use it in GitHub Desktop.
Save nyunerrr/bfa389609ddccb6f35da4f8cad8ee6e7 to your computer and use it in GitHub Desktop.
def Q13(n):
if(n == "test"):
return "Yes"
elif(n[-1] == "t"):
return "Good"
else:
return "No"
#条件判定の順番に気をつけて下さい。
#testという文字列は末尾にtを含んでいるので、この条件を先に置くとtestに対して”Good”を出力してしまいます。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment