Last active
November 21, 2022 16:16
-
-
Save cfjedimaster/2e6c3a61cb43a07b58a3a241133719e5 to your computer and use it in GitHub Desktop.
This file contains 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
def slashdraw(input): | |
height = 0 | |
for char in input: | |
if char == "\\": | |
print(" "*height + char) | |
height = height + 1 | |
else: | |
height = height - 1 | |
print(" "*height + char) | |
slashdraw('\\\\\\//\\/\\\\') | |
print('------------------------') | |
slashdraw('\\\\\\\\') | |
print('------------------------') | |
slashdraw('\\/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment