Created
January 1, 2023 22:05
-
-
Save visuve/e4191d0788ad04298592bd7c26e91895 to your computer and use it in GitHub Desktop.
Magic!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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