Skip to content

Instantly share code, notes, and snippets.

@showyou
Created August 18, 2018 13:53
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 showyou/a8d5c415c5c6ede65a7b4b9fcc520d38 to your computer and use it in GitHub Desktop.
Save showyou/a8d5c415c5c6ede65a7b4b9fcc520d38 to your computer and use it in GitHub Desktop.
S = input()
K = int(input())
for i in range(len(S)):
if S[i] == '1':
if i == K:
print('1')
break
else:
print(S[i])
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment