*if menuInput == '1':
print("")
encryptString = input("Please enter string to encrypt:")
print("")
offSetValue = int(input("Please enter offset value (1-94):"))
print("")
for character in encryptString:
x = ord(character)
y = x + offSetValue
z = chr(y)
print("Encrypted string:")
print(z)*
I want the string that has been encrypted to be outputted in this format:
Encrypted string:
abcde
but it comes out in this format:
Encrypted string:
a
Encrypted string:
b
Encrypted string:
c
Encrypted string:
d
I've tried using end and sep but they don't help.