Answer:
See Explaination
Explanation:
This assume that input is a file and is given on command line. Please note this will ot print lines with frederick as thats what I feel question is asking for
#!/usr/bin/perl -w
open(FILE, $ARGV[0]) or die("Could not open the file $ARGV[0]");
while ($line = <FILE>){
if($line=~/\s+fred\s+/)
{
print $line;
}
}
close(FILE);
Answer:
yeah i agree with your answer
The answer is B! because charts are made to make research papers and such which interns means it’s shared with government to help with research as well.
Answer:
import numpy as np
a = [[3, 3, 4, 2], [4, 4], [4, 0, 3, 3], [2, 3], [3, 3, 3]]
mean_holder = [np.array(i).mean() for i in a]
mean_groups= [[i for i,x in enumerate(mean_holder) if x==v] for v in mean_holder]
mean_g = []
for i in mean_groups:
if i not in mean_g:
mean_g.append(i)
print(mean_holder)
print(mean_g)
Explanation:
The python's Numpy package is used to convert the lists in the a-list into arrays and the means are taken and grouped by index