I am making a program which takes a file with A-Z written in ASCII art. The program takes 3 lines of input: Hight, Width and the word that is to be written (All caps and spaces). I have managed to get the program to print the first letter that is iterated but, for some reason, it seems the for loop I set up just stops.
temp = []
hi = input('Height: ')
wi = input('Width: ')
tx = input('Text: ')
fi = open("font.txt")
for n in range(len(tx)):
for i in tx:
temp = cd[i]
var1 = int(temp[0])
ra1 = (var1 * int(hi))
ra1n = (ra1 + int(hi))
temp = []
lines = fi.readlines()
print(''.join(lines[ra1:ra1n]), end='')
This is what it outputs
Height: 8
Width: 9
Text: WOW
|\ /|
| ) ( |
| | _ | |
| |( )| |
| || || |
| () () |
(_______)