Skip to content

Instantly share code, notes, and snippets.

@vedgar
Last active May 28, 2019 20:05
Show Gist options
  • Save vedgar/6cec2f8af2aab0f5e2568d734c01b415 to your computer and use it in GitHub Desktop.
Save vedgar/6cec2f8af2aab0f5e2568d734c01b415 to your computer and use it in GitHub Desktop.
with open(input('izlazna datoteka: '), 'w') as izlaz:
for p in enumerate(open(input('ulazna datoteka: ')), 1):
print(*p, sep=': ', end='', file=izlaz)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment