I'm having trouble with this question, and I don't know where to start:
Write a function that prints characters using the following header:
def printChars(ch1, ch2, numberPerLine):
This function prints the characters between ch1 and ch2 with the specified numbers per line. Write a test program that prints ten characters per line from 1 to Z.
I have this so far:
import string
import random
ch1 = 1
ch2 = str('chr(90)')
char_line = 10
numberoflines = 36
def printChars(ch1,ch2,char_line):
for i in range(numberoflines):
i = 0
while i in range(numberoflines):
i += 0
print(string.digits)
print(string.ascii_uppercase)
if i <= char_line:
print('\n')
elif i >=36:
return
printChars(ch1,ch2,char_line)
and when this is inputted, I just get a repetition of
0123456789
ABCDEFGHIJKLMNOPQRSTUVWXYZ
When I should be getting
1234567890
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ
P.S. I'm a newcomer to StackOverflow, and I'm still learning the system