File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,16 @@ def main():
42
42
print ("4.Quit" )
43
43
choice = input ("What would you like to do?: " )
44
44
if choice not in ['1' , '2' , '3' , '4' ]:
45
- print ("Invalid choice" )
45
+ print ("Invalid choice, please enter a valid choice " )
46
46
elif choice == '1' :
47
- strng = input ("Please enter the string to be ecrypted : " )
47
+ strng = input ("Please enter the string to be encrypted : " )
48
48
key = int (input ("Please enter off-set between 1-94: " ))
49
49
if key in range (1 , 95 ):
50
50
print (encrypt (strng .lower (), key ))
51
51
elif choice == '2' :
52
52
strng = input ("Please enter the string to be decrypted: " )
53
53
key = int (input ("Please enter off-set between 1-94: " ))
54
- if key > 0 and key <= 94 :
54
+ if key in range ( 1 , 95 ) :
55
55
print (decrypt (strng , key ))
56
56
elif choice == '3' :
57
57
strng = input ("Please enter the string to be decrypted: " )
You can’t perform that action at this time.
0 commit comments