Make your strings more nerdy: Replace all 'a'/'A' with 4, 'e'/'E' with 3 and 'l' with 1
e.g. "Fundamentals" --> "Fund4m3nt41s"


```if:csharp
Documentation:
Kata.Nerdify Method (String)

Nerdifies a string. Returns a copy of the original string with 'a'/'A' characters replaced with '4', 'e'/'E' characters replaced with '3', and 'l' characters replaced with '1'.

Syntax


public
static
string Nerdify(
string str
    )
  



Parameters

str

Type: System.String
The string to be nerdified.

Return Value

Type: System.String
  The nerdified string.


Exceptions



Exception
Condition

ArgumentNullException
str is null.



```

Difficulty: EASY
Starter code: def nerdify(txt):
	

Solutions:
def nerdify(txt):
	return txt.translate(str.maketrans('aAeEl', '44331'))


def nerdify(txt):
	return txt.translate(str.maketrans('aelAE', '43143'))


def nerdify(txt):
	intab = 'aelAE'
	outab = '43143'
	trantab = str.maketrans(intab, outab)
	return txt.translate(trantab)


def nerdify(txt):
	tex = txt.replace('a', '4')
	tex = tex.replace('A', '4')
	tex = tex.replace('E', '3')
	tex = tex.replace('e', '3')
	return tex.replace('l', '1')
	pass


def nerdify(txt):
	arr = []
	for i in txt:
		if i == 'a' or i == 'A':
			arr.append('4')
		elif i == 'e' or i == 'E':
			arr.append('3')
		elif i == 'l':
			arr.append('1')
		else:
			arr.append(i)
	return ''.join(arr)


def nerdify(txt):
	s = ''
	for i in range(len(txt)):
		if txt[i] == 'a' or txt[i] == 'A':
			s += '4'
		elif txt[i] == 'e' or txt[i] == 'E':
			s += '3'
		elif txt[i] == 'l':
			s += '1'
		else:
			s += txt[i]
	return s


def nerdify(txt):
	encoder = {'a': '4', 'A': '4', 'e': '3', 'E': '3', 'l': '1'}
	return ''.join((encoder.get(c, c) for c in txt))


d = {'a': '4', 'e': '3', 'l': '1', 'A': '4', 'E': '3'}

def nerdify(txt):
	return ''.join([d[i] if i in d else i for i in txt])


def nerdify(txt):
	new_txt = ''
	for letter in txt:
		if letter == 'a' or letter == 'A':
			new_txt += '4'
		elif letter == 'e' or letter == 'E':
			new_txt += '3'
		elif letter == 'l':
			new_txt += '1'
		else:
			new_txt += letter
	return new_txt