Skip to content

Instantly share code, notes, and snippets.

@visuve
Created January 1, 2023 22:05
Show Gist options
  • Select an option

  • Save visuve/e4191d0788ad04298592bd7c26e91895 to your computer and use it in GitHub Desktop.

Select an option

Save visuve/e4191d0788ad04298592bd7c26e91895 to your computer and use it in GitHub Desktop.
Magic!
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
if __name__ == "__main__":
word = sys.argv[1]
size = len(word)
for y in range(0, size):
for x in range(y, size + y):
i = x % size
print(word[i], end=' ')
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment