Created
May 22, 2020 13:06
-
-
Save nyunerrr/bfa389609ddccb6f35da4f8cad8ee6e7 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
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