Hi. I'm trying to convert my python file into pseudo code but I have no idea of how pseudo code work.
continueAnswer = input("Please enter either continue to carry on with the program or end to stop it: ")
continueAnswer=continueAnswer.upper()
while continueAnswer == 'C':
while True:
try:
print('')
encodeORdecode = input("Type E for encode or D for decode: ")
if encodeORdecode != 'e' and encodeORdecode != 'd' and endChoice !='END' and endChoice !='NO':
raise ValueError
break
except ValueError:
print("Invalid Choice!! Please try again")
step=int(input("Plese enter a number for what you want the offset to be: "))
#working
#encoding
if encodeORdecode == 'e':
userInput=input("Please enter the message you want to encode: ")
userInput = userInput.lower()
for x in range(0,len(userInput),1):
encoded = chr(ord(userInput[x])+step)
print(encoded.upper(), end = '')
print('')
continueAnswer = input("Do you want to continue or end the program: ")
continueAnswer=continueAnswer.upper()
# decoding
if encodeORdecode == 'd':
userInput=input("Please enter the message you want to decode: ")
userInput = userInput.lower()
for x in range(0,len(userInput),1):
encoded = chr(ord(userInput[x])-step)
print(encoded.upper(), end = '')
print('')
continueAnswer = input("Do you want to continue or end the program: ")
continueAnswer=continueAnswer.upper()
#ending program
while continueAnswer == 'END':
print('۞۞۞Now ending program. Thanks for using my programs guys۞۞۞')
break