Answer: BUBBLE SORT
I hope I've been helpful to you.
Answer:
Following are the code to this question:
file= open('book.txt') #open file
li= {} #define an empty list
for lines in file: # use for loop Split file data into words
d= lines.lower().strip(' !?').split() #define variable d that Add it to map
for val in d: #define loop to store data
if val not in li: #check value is not in list
li[val] = 0 #define list and assign value in 0
li[val] = li[val] + 1 #Sort the book data and add its value
m = sorted(li.items(),key = lambda x : -x[1]) #sorted value into the m variable
print(m[:10]) #print value
Output:
please find the attachment.
Explanation:
In the given python code first, we open the file "book.txt", in next line, an empty list is defined, that uses the for loop which can be described as follows:
- In the for loop is used, that reads the file data, and defines a variable "d", that stores the values into the map.
-
In the next line another loop is used, that check file values, if values are the same type so, it adds values and writes it.
- In the last line, m variable is used, that sorts the values and use the slicing to print its value.
The web client that connects to a web server, which is in turn connected to a bi-application server, is reflective of a one-tier architecture.
<h3>What is a website?</h3>
A website is a collection of web pages and related material that is published on at least one server and given a shared domain name.
A one-tier architecture is reflected in the web application that connects to a web server, which is coupled to a bi-application server.
Thus, the web client that connects to a web server, which is in turn connected to a bi-application server, is reflective of a one-tier architecture.
Learn more about the website here:
brainly.com/question/19459381
#SPJ4
Coriander comes from<span> Morocco and Romania</span>
Answer:
b. for fear of blowing the large cloud of gas to another city
Explanation:
Firstly, before the explosion of the Union Carbide plant, the flare tower had been out of service. Secondly, the flare tower was incapable of bringing the concentration of large amount of gas down to a safe level. It could barely handle a quarter of the leaked gas. All these factors made the operators scared of turning the flare tower on as it will only blow out the cloud of gas to another city.