Answer:
def extract_title(file):
import re
a =''
with open(file,'r') as file:
for line in file:
a += line
m = re.search("^(TITLE)(.*?)(JOURNAL)", a, re.M + re.S)
print(m.groups()[1])
extract_title('new.txt')
Explanation:
The programming language used is python 3.
The function is first defined and the regular expression module is imported.
A variable is initialized to an empty string that will hold the content of the GenBank formatted file.
The file is opened and every line in the file is assigned to the string variable. The WITH statement allows files to be closed automatically.
Regular expression is used to capture all the files between TITLE and JOURNAL in a group.
The group is printed and the function is called.
I have attached a picture of the code in action.
Personally, i would use a 3-D printer, but you can use any material that you have, and have an example next to you for reference if you aren't going to 3-D print.
Answer:
a) Generate a new public and private key
Explanation:
You encrypt a message using the recipient's public key and the recipient decrypts the message using his own private key. Only the public key can be known by an external agent. The private key is for the individual and is not expected to be shared. In the event that the recipient cannot decrypt the message, it is unsafe to send one's private key to him. He does not even need one's private key to decrypt the message, he needs his own private key.
The best thing to do is to generate another means of security by generating new public and private key so that the sender encrypts the message with the new public key and the receiver decrypts it using his new private key.
Option B is wrong because, if the encryption is removed, the aim, which is to secure the message from intruders is not achieved.