Write function toAcronym which takes a string and make an acronym of it.

Rule of making acronym in this kata:

1. split string to words by space char
2. take every first letter from word in given string
3. uppercase it
4. join them toghether



Eg:


Code wars -> C, w -> C W -> CW

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def to_acronym(input):
	

Solutions:
def to_acronym(input):
	return ''.join((word[0] for word in input.split())).upper()


def to_acronym(input):
	return ''.join((w[0].upper() for w in input.split()))


def to_acronym(input):
	return ''.join((i[0].upper() for i in input.split()))


def to_acronym(input):
	fstring = ''
	fstring += input[0].upper()
	for i in range(0, len(input)):
		if input[i] == ' ':
			fstring += input[i + 1].upper()
	return fstring
	pass


def to_acronym(i):
	return ''.join((w[0] for w in i.split())).upper()


import re

def to_acronym(s):
	return ''.join(re.findall('\\b(\\w)', s)).upper()


import string

def to_acronym(input):
	return ''.join([x[0].upper() for x in input.split(' ')])


to_acronym = lambda s: ''.join((w[0] for w in s.split())).upper()


def to_acronym(input):
	words = input.split()
	acronym = ''
	for word in words:
		acronym += word[0]
	return acronym.upper()