Skip to content

Instantly share code, notes, and snippets.

@Krimsit
Created February 20, 2018 14:27
Show Gist options
  • Save Krimsit/92861df1cc3f22a116ed15473beca241 to your computer and use it in GitHub Desktop.
Save Krimsit/92861df1cc3f22a116ed15473beca241 to your computer and use it in GitHub Desktop.
n = int(input())
k = int(input())
a = [x for x in range(1, n+1)]
for i in range(n):
if i == k:
del(a[i])
b = a[i]
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment