Write a function which converts the input string to uppercase.

~~~if:bf
For BF all inputs end with \0, all inputs are lowercases and there is no space between. 
~~~

Difficulty: introductory

Starter code:

def make_upper_case(s):
	

Solutions:
def make_upper_case(s): return s.upper()

make_upper_case = str.upper

def make_upper_case(strng):
    return strng.upper()

def make_upper_case(s):
    return "".join(i.capitalize() for i in s)

def make_upper_case(s):
    if isinstance(s,str):
        return s.upper()
    else:
        return

def make_upper_case(s):
    return s.upper()
    
    # wtf
    #return ''.join(chr(ord(c)-32) for c in s)


def make_upper_case(s):
    a = str(s)
    return a.upper()

def make_upper_case(s):
    return str.upper(s)

make_upper_case=lambda s:s.upper()


def make_upper_case(s):
    return ''.join(chr(ord(ch) - 32) if ord(ch) in range(97, 123) else ch for ch in s)

make_upper_case = lambda x: x.upper()

def make_upper_case(s: str) -> str:
    """ Get string converted to uppercase. """
    return s.upper()

def make_upper_case(s):
    return "".join([char.upper() for char in s])

def make_upper_case(s):
    # Code 
    return s.upper()

def make_upper_case(s):
    a = str(s.upper())
    return a

def make_upper_case(s):
    upper_userword=s.upper()
    
    
    return upper_userword

def inrange(a,b,x):
    if x>=a and x<=b:
        return True
    else:
        return False
def make_upper_case(s):
    ans=""
    for x in s:
        if inrange(ord('a'),ord('z'),ord(x)):
            x=chr(ord('A')+(ord(x)-ord('a')))
        ans=ans+x
    return ans

def make_upper_case(s):
    return s.upper()
make_upper_case("ok")

def make_upper_case(s):
  make_upper_case = (s)
  return make_upper_case.upper()

def make_upper_case(s):
    """Return string s converted to uppercase"""
    return s.upper()

def make_upper_case(s):
    cadena=s
    return cadena.upper()


def make_upper_case(s):
    f=s.upper()
    return f

def make_upper_case(s):
    t = s.upper()
    print(t)
    return t

def make_upper_case(s):
    upperStr = s.upper()
    return upperStr

def make_upper_case(s):
#TROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL"""
    return s.upper()

def make_upper_case(s):
    # Code here
    string = s.upper()
    print(string)
    return string

def make_upper_case(s):
    val1 = s.upper()
    return val1

def make_upper_case(s):
    lowers = 'abcdefghijklmnopqrstuvwxyz'
    uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    
    lowers_list = [l for l in lowers]
    uppers_list = [l for l in uppers]
    dictio = dict(zip(lowers_list, uppers_list))
    output = ''
    for letter in s:
        if letter not in lowers:
            output += letter
        else:
            output += dictio[letter]
    return output

from string import ascii_lowercase, ascii_uppercase

def make_upper_case(s):
    return s.translate(str.maketrans(ascii_lowercase, ascii_uppercase))

def make_upper_case(word):
    new_word = ""
    for letter in word:
        if 97 <= ord(letter) <= 122:
            new_word += chr(ord(letter)-32)
        else:
            new_word += letter
    return new_word


def make_upper_case(s):
    alphabet = {}
    counter = 65
    for i in range(97, 123):
        alphabet[chr(i)] = chr(counter)
        counter = counter + 1

    sum = ""
    for i in s:
        for j in alphabet:
            if i == j:
                sum = sum + alphabet[j]
                i = ""
                break
        sum = sum + i
    return sum

def make_upper_case(s):
    # Code here
    str=""
    for i in s:
        if 97<=ord(i)<=122:
            str=str+chr(ord(i)-32)
        else:
            str=str+i
    return str

def make_upper_case(s):
    # Code here
    res=""
    for char in s:
        if char.islower():
            key=chr(ord(char)-32)
            res=res+key
        else:
            res=res+char
    return res

def make_upper_case(s):
    
    return s.upper()

word = make_upper_case("hello")



def make_upper_case(s):
    s = s.replace('a', 'A').replace('b', 'B').replace('c', 'C').replace('d', 'D').replace('e', 'E').replace('f', 'F').replace('g', 'G').replace('h', 'H').replace('i', 'I').replace('j', 'J').replace('k', 'K').replace('l', 'L').replace('m', 'M').replace('n', 'N').replace('o', 'O').replace('p', 'P').replace('q', 'Q').replace('r', 'R').replace('s', 'S').replace('t', 'T').replace('u', 'U').replace('v', 'V').replace('w', 'W').replace('x', 'X').replace('y', 'Y').replace('z', 'Z')
    return s

def make_upper_case(st):
    out = ""
    for s in st:
        o = ord(s)
        if 97 <= o <= 122:
            o -= 32;
        out += chr(o)
    return out

def make_upper_case(s):
    transform = s.upper()
    return transform
    
    # Code here


def make_upper_case(s):
    '''Pointless kata'''
    return s.upper()

def make_upper_case(s):
    """string to uppercases"""
    return "".join([char.upper() for char in s])

def make_upper_case(s):
    """string  to uppercase"""
    return "".join([char.upper() for char in s])

def make_upper_case(s):
    return ''.join(map(lambda s: s.upper(), [_ for _ in s]))


def make_upper_case(s):
    str = ""
    for char in s:
        if char.islower():
            str = str + char.upper()
        else:
            str = str + char
    return str

def make_upper_case(s):
    lst = list(s)
    string = ''
    for char in lst:
      string = string + char.upper()
    return string
    


def make_upper_case(s):
    print (s)
    return s.upper()

def make_upper_case(s):
    # Code here
    s=list(s)
    arr=''
    for i in s:
        arr+= i.upper()
    return ('{}'.format(arr))

def make_upper_case(str):
 return str.upper()
make_upper_case("hello") # => "HELLO"
make_upper_case("the secret") # => THE SECRET
make_upper_case("hello world") # => "HELLO WORLD"

def make_upper_case(s):
    output = ''
    for i in s:
        output += i.upper()
    return output

def make_upper_case(s):
    return "".join([chr(ord(x) - 32) if ord(x) in range(97, 123) else x for x in s])


def make_upper_case(s):
    return ''.join(list(map(lambda x: x.upper(), s)))

def make_upper_case(x):
    return(x.upper())


def make_upper_case(s):
    letter = s.upper() 
    return letter 


def make_upper_case(s):
    string1 = s.upper()
    return string1
make_upper_case("hello")


def make_upper_case(s):
    capital = s.upper()
    return capital

def make_upper_case(s):
    answer = ""
    for char in s:
        answer += char.upper()
    return answer

def make_upper_case(s):
    return s.upper ()
    print (s)

def make_upper_case(s):
    arr = []
    for i in s:
      if i.islower():
           i = i.upper()
      arr.append(i)
    arr = ''.join(arr)
    return arr


def make_upper_case(s):
    supper=s.upper()
    return supper

def make_upper_case(s):
    make = s.upper()
    return make

def make_upper_case(s):
    # Code here
    spongebob = ""
    for i in s:
        if(str(i).isnumeric() == True):
            spongebob += i
        elif(str(i).islower() == True):
            spongebob += str(i).upper()
        else:
            spongebob += i
    return spongebob

def make_upper_case(s):
    p = s.upper()
    return p

def make_upper_case(s):
    # Code here
    return s.upper()
print(make_upper_case('hello sdk 00'))

def make_upper_case(s):
    return "".join([chr(ord(n) - 32) if ord(n) >= 97 else n for n in s])

def make_upper_case(s):
    out = s.upper()
    return(out)

def make_upper_case(string_to_capitalize):
    capitalized_string = string_to_capitalize.upper()
    return capitalized_string
    
print((make_upper_case("hello")))    


def make_upper_case(stringy):
    answer = stringy.upper()
    return answer

def make_upper_case(s):
    z = s.upper()
    return z

def make_upper_case(s):
    is_upper = s.upper()
    return is_upper




make_upper_case = lambda a : a.upper()
    # Code here


def make_upper_case(s):
    print(s.upper())
    return s.upper()

def make_upper_case(s):
    if s != s.upper():
        s = s.upper()
    return s


def make_upper_case(s):
    new_string = ""
    for char in s:
        char = char.upper()
        new_string += char
    return new_string

def make_upper_case(s): 
  list = s  
  return list.upper()

print(make_upper_case("bahs"))

def make_upper_case(s):
      st = str(s)
      return (st.upper())

def make_upper_case(s):
  new_string = ''
  for char in s:
       new_string += char.upper()
  return new_string
       
  


import string
def make_upper_case(s):
   return s.upper(); # Code here

def make_upper_case(s):
    b = s.upper()
    print(b)
    return(b)
    # Code here


def make_upper_case(s):
    return ''.join([a.capitalize() for a in s])

def make_upper_case(s):
    up = s.upper()
    return up
s = make_upper_case('hello')   
print(s)
    # Code here


def make_upper_case(s):
    y = str(s.upper())
    return y 


def make_upper_case(s):
    '''
    String -> String
    produces an upper cased string
    '''
    return s.upper()

def make_upper_case(s):
    index=0
    
    while index < len(s):   
         s=s.upper()
         index+=1
    return(s) 


def make_upper_case(s):
    E=[]
    for i in range(len(s)):
        E.append(s[i].upper())
    return ''.join(E)
    # Code here


def make_upper_case(s):
    answer = ""
    for c in s:
        answer += c.upper()
    
    return answer


def make_upper_case(s):
    # Code here
    u = s.upper()
    return (u)
    
    
print(( make_upper_case('matrix')))
    


def make_upper_case(string):

    for char in string:
        if (char.isalpha):
            return string.upper()
        else:
            return char

def make_upper_case(s):
    str = ""
    for x in s:
        str = str + x.upper()
    return str

def make_upper_case(s):
    big  = s.upper()
    return big

def make_upper_case(s = 'hello'):
    s = s.upper()
    return s

def make_upper_case(s):
    str = ""
    for a in s:
        str += (a.upper())
    return str

def make_upper_case(s):
    s1=s.upper()
    return s1

def make_upper_case(s):
    return s.upper()
    #      Zelf


def make_upper_case(s):
    # Code here
    my_string = "{}".format(s)
    return my_string.upper()


print((make_upper_case("hello")))


def make_upper_case(s):
    i  = s.upper()
    return i

def make_upper_case(s):
    u=[]
    u=s.upper()
    return(u)

def make_upper_case(s):
    '''
    input: s, string
    output: uppercased version of string s 
            (converts all lowercase characters in s to uppercase)
    '''
    return s.upper()

def make_upper_case(s):
    #Using upper method of string
    return(s.upper())

def make_upper_case(s):
    word_upper_case = ""
    for c in s:
        if 97 <= ord(c) <= 122:
            word_upper_case += chr(ord(c) - 32)
        else:
            word_upper_case += c
    return word_upper_case

def make_upper_case(s):
    UpCase=s.upper()
    return UpCase

def make_upper_case(s):
    a = s
    return a.upper()

def make_upper_case(S):
    return S.upper()