Let's imagine we have a popular online RPG. A player begins with a score of 0 in class E5. A1 is the highest level a player can achieve.

Now let's say the players wants to rank up to class E4. To do so the player needs to achieve at least 100 points to enter the qualifying stage.

Write a script that will check to see if the player has achieved at least 100 points in his class. If so, he enters the qualifying stage. 

In that case, we return, ```"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up."```.

Otherwise return, ```False/false``` (according to the language n use).

NOTE:  Remember, in C# you have to cast your output value to Object type!

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def playerRankUp(pts):
	

Solutions:
def playerRankUp(pts):
	msg = 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'
	return msg if pts >= 100 else False


def playerRankUp(pts):
	return [False, 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'][pts > 99]


playerRankUp = lambda p: False if p < 100 else 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'


def playerRankUp(p):
	return p >= 100 and 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'


def playerRankUp(pts):
	rank_up = 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'
	try:
		rank_up[pts + 4]
	except IndexError:
		return rank_up
	return False


from typing import Union

def playerRankUp(pts: int) -> Union[int, str]:
	return {pts >= 100: 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'}.get(True, False)


playerRankUp = lambda pts: {0: False}.get(max(0, pts // 100), 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.')


playerRankUp = lambda pts: pts >= 100 and 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'


def playerRankUp(pts):
	return ''.join(map(chr, [87, 101, 108, 108, 32, 100, 111, 110, 101, 33, 32, 89, 111, 117, 32, 104, 97, 118, 101, 32, 97, 100, 118, 97, 110, 99, 101, 100, 32, 116, 111, 32, 116, 104, 101, 32, 113, 117, 97, 108, 105, 102, 121, 105, 110, 103, 32, 115, 116, 97, 103, 101, 46, 32, 87, 105, 110, 32, 50, 32, 111, 117, 116, 32, 111, 102, 32, 121, 111, 117, 114, 32, 110, 101, 120, 116, 32, 51, 32, 103, 97, 109, 101, 115, 32, 116, 111, 32, 114, 97, 110, 107, 32, 117, 112, 46])) if pts >= 100 else False


class Player(object):

	def __init__(self, pts, rank='E5'):
		self.rank = rank
		self.pts = pts

	def check(self):
		if self.pts < 100:
			return False
		else:
			return 'Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.'

def playerRankUp(pts):
	return Player(pts).check()