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.
Answer:
D
Explanation:
Malware can be used for many things, a click of a button can send complete access to the attacking system. Malware comes in all formes and powers.
The acronym RFID (Radio Frequency Identification) describes
networked devices that contain microcomputers but are not thought of as
computing devices, such as refrigerators, automobile components, light
bulbs, and industrial control devices. RFIDs are battery-powered sensors that gather and transmit data to a reading device. Some sensor based technologies are scanning electron microscopes, LiDAR,radar, GPS, x-ray, sonar, infrared and seismic.
<span>C. 3
Due to the different speeds of P and S waves, a single seismometers can determine the distance to an earthquake. So, for a single station, the localization is any point on a circle around the station. With 2 stations, you'll have two circles that intersect at two points. The 3rd station is needed in order to determine which of the 2 points is the actual earthquake.</span>