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.
Answer:
Following are the program in the Python Programming Language.
#import math package
from math import sqrt
#define function
def circle(x,y):
#return the square root
return sqrt( (x)**2 + (y)**2 )
#get input from the user
x = float(input("Enter first number between -10 and 10: "))
#get input from the user
y = float(input("Enter first number between -10 and 10: "))
#check condition
if(circle(x,y)<8):
#then, print message
print("It is in!")
#otherwise
else:
#print message
print("It is not in!")
<u>Output:</u>
Enter first number between -10 and 10: 1.5
Enter first number between -10 and 10: 2.6
It is in!
Explanation:
Here, in the following program in the Python Programming Language.
- Define the function "circle" and pass the argument "x" and "y" then, return square root of x and y.
- Set a variable "x" which get float type input from the user.
- Set a variable "y" which get float type input from the user.
- Set the if conditional statement to check that the function return the value less than 8 then, print the message.
- Otherwise, it print the following message.
Answer:
function solveMaze(){ moveForward(); moveForward(); rotateRight(); while(canMove("forward")){ moveForward(); } rotateLeft(); moveForward(); }
Explanation:
took the test
A privacy concern the family may have is IP tracking, and unless they have a good VPN is location tracking since they are all uploading pictures to this website.