Given the marks of N students in an Array A, calculate the mean.
Note: If result is a Decimal Value, find it's floor Value. 
Example 1:
Input:
N = 4 
A = { 56 , 67 , 30 , 79 }
Output:
58
Explanation:
56+67+30+79 = 232;  232/4 = 58.
So, the Output is 58.
Example 2:
Input:
N = 4 
A = { 78 , 89 , 67 , 76 }
Output:
77
Explanation:
78+89+67+76  = 310;  310/4 = 77.5 = 77.
So, the Output is 77.
Your Task:
You don't need to read input or print anything. Your task is to complete the function mean() which takes 1 Integer N and an Array A as input and returns the answer.
Expected Time Complexity: O(N)
Expected Auxiliary Space: O(1)
Constraints:
1 <= N <= 10^{4}
1 <= A[i] <= 10^{4}

Source: geeksforgeeks | Difficulty: EASY
Tags: Mathematics

Starter code: #User function Template for python3



class Solution:

    def mean(self, N , A):

        # code here 

Solutions:
import statistics

class Solution:

	def mean(self, N, A):
		return int(statistics.mean(A))


class Solution:

	def mean(self, N, A):
		sum = 0
		for i in A:
			sum += i
		return int(sum / len(A))


class Solution:

	def mean(self, N, A):
		s = 0
		for i in A:
			s += i
		return s // N


class Solution:

	def mean(self, N, A):
		return int(sum(A) / N)


import math

class Solution:

	def mean(self, N, A):
		sum = 0
		for i in A:
			sum += i
		a = sum / N
		return math.floor(a)


from math import floor

class Solution:

	def mean(self, N, A):
		answer = 0
		for i in range(N):
			answer += A[i]
		return floor(answer / N)


import math

class Solution:

	def mean(self, N, A):
		return math.floor(sum(A) / N)


class Solution:

	def mean(self, N, A):
		s = sum(A)
		mean = s // N
		return mean


import math

class Solution:

	def mean(self, N, A):
		return int(sum(A) / N)


class Solution:

	def mean(self, N, A):
		acum = 0
		for x in A:
			acum += x
		return int(acum / N)


class Solution:

	def mean(self, N, A):
		avg = sum(A) // N
		return avg


class Solution:

	def mean(self, N, A):
		k = 0
		for i in range(N):
			k = k + A[i]
		return k // N


class Solution:

	def mean(self, n, a):
		sum = 0
		for i in a:
			sum += i
		mean = int(sum / n)
		return mean


class Solution:

	def mean(self, N, A):
		additionofallelements = sum(A)
		return additionofallelements // N


class Solution:

	def mean(self, N, A):
		sum = 0
		for i in A:
			sum = sum + i
			avr = sum // N
		return avr


class Solution:

	def mean(self, N, A):
		a = sum(A)
		b = a // N
		return b


class Solution:

	def mean(self, N, A):
		ans = sum(A)
		mean = ans // N
		return mean


class Solution:

	def mean(self, N, A):
		s = 0
		for a in A:
			s = s + a
		n = s / N
		return int(n)


import numpy

class Solution:

	def mean(self, N, A):
		return int(numpy.average(A))


class Solution:

	def mean(self, n, a):
		s = sum(a) // n
		if '.' in str(s):
			return s.floor()
		return s


class Solution:

	def mean(self, N, A):
		return sum(A) // len(A)


class Solution:

	def mean(self, N, A):
		S = 0
		for i in range(len(A)):
			S = A[i] + S
		m = S // N
		return m


import math
from statistics import mean

class Solution:

	def mean(self, N, A):
		return math.floor(mean(A))


class Solution:

	def mean(self, N, A):
		y = sum(A) // N
		return y


class Solution:

	def mean(self, N, A):
		sum = 0
		for i in range(N):
			sum = sum + A[i]
		output = sum // N
		return output


class Solution:

	def mean(self, N, A):
		N = len(A)
		count = 0
		for i in A:
			count += i
		mean_value = int(count / N)
		return mean_value


import statistics as st

class Solution:

	def mean(self, N, A):
		return int(st.mean(A))


class Solution:

	def mean(self, N, A):
		sum = 0
		if N == 1:
			return A[0]
		for i in range(N):
			sum = sum + A[i]
		return int(sum / N)


class Solution:

	def mean(self, N, A):
		soma = 0
		for number in A:
			soma += number
		mean = soma / N
		return int(mean)


class Solution:

	def mean(self, n, a):
		s = sum(a)
		return s // n


class Solution:

	def mean(self, N, A):
		tot = sum(A)
		return tot // N


class Solution:

	def mean(self, N, A):
		d = sum(A)
		e = d / N
		return int(e)