Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- height = int(input('Height: '))
- width = int(input('Width: '))
- text = str(input('Text: '))
- lines = []
- for line in open('font.txt'):
- lines.append(line.rstrip())
- space = []
- for h in range(height):
- space.append(' '*width)
- letters = {' ': space}
- for o in range(ord('a'), ord('z')+1):
- d = o - 97
- l = chr(o)
- letters[l] = []
- for h in range(height):
- letters[l].append(lines[h + (d * height)])
- for h in range(height):
- string = ''
- for w in text.lower():
- string += letters[w][h]
- string += (width - len(letters[w][h])) * ' '
- print(string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement