Skip to content

Commit 8a37c94

Browse files
authored
Update main.py
Signed-off-by: de_soot <[email protected]>
1 parent 49a3959 commit 8a37c94

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

main.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
def main() -> None:
2-
user_input = input("\tPress enter to encrypt a message using a modified Caesar's Cipher. Enter 'quit' to exit the program\n>>> ").lower()
3-
4-
if user_input == "quit":
5-
return
2+
if input("\tPress enter to encrypt a message using a modified Caesar's Cipher. Enter 'quit' to exit the program\n>>> ").lower() == "quit": return
63

74
encryption_key = int(input("\tEnter encryption key\n>>> "))
85
message_original = str(input("\tEnter your message\n>>> "))
@@ -35,8 +32,6 @@ def main() -> None:
3532
message_encrypted += chr(char_unicode_new)
3633

3734
print("Encrypted message : " + message_encrypted)
38-
3935
main()
4036

41-
if __name__ == "__main__":
42-
main()
37+
if __name__ == "__main__": main()

0 commit comments

Comments
 (0)