mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 19:46:30 +08:00
print() is a function just like every other function (#1101)
* print() is a function just like every other function
This commit is contained in:

committed by
Harshil

parent
6654e1ec7d
commit
89acf5d017
@ -41,12 +41,12 @@ def main():
|
||||
print("4.Quit")
|
||||
choice = input("What would you like to do?: ")
|
||||
if choice not in ['1', '2', '3', '4']:
|
||||
print ("Invalid choice, please enter a valid choice")
|
||||
print("Invalid choice, please enter a valid choice")
|
||||
elif choice == '1':
|
||||
strng = input("Please enter the string to be encrypted: ")
|
||||
key = int(input("Please enter off-set between 1-94: "))
|
||||
if key in range(1, 95):
|
||||
print (encrypt(strng.lower(), key))
|
||||
print(encrypt(strng.lower(), key))
|
||||
elif choice == '2':
|
||||
strng = input("Please enter the string to be decrypted: ")
|
||||
key = int(input("Please enter off-set between 1-94: "))
|
||||
@ -57,7 +57,7 @@ def main():
|
||||
brute_force(strng)
|
||||
main()
|
||||
elif choice == '4':
|
||||
print ("Goodbye.")
|
||||
print("Goodbye.")
|
||||
break
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user