The only thing that I know is that after you input the text file, it could either:
-save those lines as a variable
-display the text file
However any more would be dependent on the language.
Answer:
If you want to view sites visited on a wireless network, you can check the logs stored by the wireless router to see what information is available. You may need to set your logging settings to capture the data you want.
Explanation:
Answer:
The following code is in python.
import statistics as st #importing statistics which include mean function.
def average(lst): #function average.
return st.mean(lst)#returning mean.
lst=a = list(map(int,input("\nEnter the list : ").strip().split()))#taking input of the list..
print("The average is "+str(average(lst)))#printing the average.
Output:-
Enter the list :
1 2 3 4 5 6
The average is 3.5
Explanation:
I have used the statistics library which includes the mean function that calculates the mean or average of the list.In the function average having lst as an argument returns the mean of the list lst.
Then taking lst input from the user and printing it's average.