# Task
 You have some people who are betting money, and they all start with the same amount of money (this number>0). 

 Find out if the given end-state of amounts is possible after the betting is over and money is redistributed.

# Input/Output


 - `[input]` integer array arr

  the proposed end-state showing final amounts for each player


 - `[output]` a boolean value

  `true` if this is a possible end-state and `false` otherwise
  
# Examples


- For `arr = [0, 56, 100]`, the output should be `true`.

Three players start with the same amount of money 52.

At the end of game, player 1 lose `52`, player2 win `4`, and  player3 win `48`.


- For `arr = [0, 0, 0]`, the output should be `false`.

Players should start with a positive number of of money.

- For `arr = [11]`, the output should be `true`.

One player always keep his money at the end of game.


- For `arr = [100, 100, 100, 90, 1, 0, 0]`, the output should be `false`.

These players can not start with the same amount of money.

Source: codewars | Difficulty: EASY
Tags: Ad-hoc

Starter code: def learn_charitable_game(arr):
	

Solutions:
def learn_charitable_game(arr):
	return sum(arr) % len(arr) == 0 and sum(arr) > 0


from statistics import mean

def learn_charitable_game(arr):
	m = mean(arr)
	return int(m) == m and m > 0


from statistics import mean

def learn_charitable_game(arr):
	return not mean(arr) % 1 and any(arr)


def learn_charitable_game(a_list):
	if not any(a_list):
		return False
	elif sum(a_list) % len(a_list):
		return False
	return True


def learn_charitable_game(a):
	t = sum(a) / len(a)
	return t != 0 and t.is_integer()


def learn_charitable_game(arr):
	if min(arr) <= 0 and max(arr) <= 0:
		return False
	tot = sum(arr)
	mean = round(tot / len(arr))
	result = sum((mean - x for x in arr))
	return result == 0


def learn_charitable_game(arr):
	return set(arr) != {0} and (not sum(arr) % len(arr))


def learn_charitable_game(arr):
	return sum(arr) / len(arr) == sum(arr) // len(arr) if sum(arr) > 0 else False