Answer:
- def median(l):
- if(len(l) == 0):
- return 0
- else:
- l.sort()
- if(len(l)%2 == 0):
- index = int(len(l)/2)
- mid = (l[index-1] + l[index]) / 2
- else:
- mid = l[len(l)//2]
- return mid
-
- def mode(l):
- if(len(l)==0):
- return 0
-
- mode = max(set(l), key=l.count)
- return mode
-
- def mean(l):
- if(len(l)==0):
- return 0
- sum = 0
- for x in l:
- sum += x
- mean = sum / len(l)
- return mean
-
- lst = [5, 7, 10, 11, 12, 12, 13, 15, 25, 30, 45, 61]
- print(mean(lst))
- print(median(lst))
- print(mode(lst))
Explanation:
Firstly, we create a median function (Line 1). This function will check if the the length of list is zero and also if it is an even number. If the length is zero (empty list), it return zero (Line 2-3). If it is an even number, it will calculate the median by summing up two middle index values and divide them by two (Line 6-8). Or if the length is an odd, it will simply take the middle index value and return it as output (Line 9-10).
In mode function, after checking the length of list, we use the max function to estimate the maximum count of the item in list (Line 17) and use it as mode.
In mean function, after checking the length of list, we create a sum variable and then use a loop to add the item of list to sum (Line 23-25). After the loop, divide sum by the length of list to get the mean (Line 26).
In the main program, we test the three functions using a sample list and we shall get
20.5
12.5
12
Liquefied Natural Gas (LNG) can be defined as a natural gas which in liquid form appear clear and colorless. It is odorless, non-toxic, and non-corrosive. Therefore, the given statement is A) True.
- LNG or Liquified Natural Gas is a fossil fuel that is produced after the compression of organic matter in the form of algae and phytoplankton.
- LNG consists of 95% methane gas.
- The combustion of LNG produces carbon dioxide and water vapors.
- It burns with a least pollution thus called as cleanest fossil fuel.
- The liquefaction of the natural gas takes place at -160 degree Celsius. The liquefaction of the gas causes it to transport easily in gas tanks.
- LNG is colorless, and clear.
- LNG does not possess any smell and it is non-corrosive to metallic tanks.
- LNG is also non-toxic.
Learn more about natural gas:
brainly.com/question/12200462
Answer:
if you're talking about the car b-post, the answer is "posts"
Explanation:
looked it up
Answer:
Creating an app is both an expression of our self and a reflection of what we see is missing in the world. We find ourselves digging deep into who we are, what we would enjoy working on, and what needs still need to be fulfilled. Generating an app idea for the first time can be extremely daunting. Especially with an endless amount of possibilities such as building a church app.
The uncertainty has always spawned a certain fear inside creators. The fear of creating something no one will enjoy. Spending hundreds of dollars and hours building something which might not bring back any real tangible results. The fear of losing our investment to a poor concept is daunting but not random. But simple app ideas are actually pretty easy to come by.
Great app idea generation is not a gift given to a selected few, instead, it is a process by which any of us are able to carefully explore step by step methods to find our own solution to any problem. Whether you are a seasoned creator or a novice, we have provided a few recommendations to challenge and aid you as you create your next masterpiece.
if I am right then make me brainliest