I am trying to create an eight-character key by generating 8 random numbers between 33 and 126, then convert each of the 8 numbers into an ASCII character. I have been able to do all that:
print('Eight-Character Key: ')
for i in range(0,8):
key = random.randint(33,126)
key = chr(key)
print(key,end='')
The output is:
Eight-Character Key:
BAU78)E)
But ideally I would like it to be all on the same line:
Eight-Character Key: BAU78) E)