Created
May 22, 2020 13:00
-
-
Save nyunerrr/ae698c50af5e40b6e339cd02b51a08ea 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 Q10(n): | |
for i in range(0,len(n)): | |
if(n[i] == "3"): | |
return i+1 | |
#色々やり方はあると思いますが、これが一番思いつきやすいと思います。 | |
#index関数を使ってもいいです。 | |
#配列の添字は0から始まっていることに注意して下さい。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment