Skip to content

Instantly share code, notes, and snippets.

@nyunerrr
Created May 22, 2020 13:00
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/ae698c50af5e40b6e339cd02b51a08ea to your computer and use it in GitHub Desktop.
Save nyunerrr/ae698c50af5e40b6e339cd02b51a08ea to your computer and use it in GitHub Desktop.
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