the question requiers that i don't use the uppercase function and that french characters turn into non accsented uppercase like 'é' turns to 'E' here's what i came with
def Maj(s):
l= list("âàéèêëïîôüûüÿ")
r=''
for char in s:
if 65 <= ord(char) >= 90:
r += chr(ord(char)-32)
elif char in l :
if 0 <= l.index(char) < 1:r += "A"
if 2 <= l.index(char) < 6:r += "E"
if l.index(char)== 6: r+="O"
if 7 <= l.index(char) < 10 : r+= "U"
if l.index(char)== 10: r+="Y"
else:
r += char
return r
but it instead returns like this
>>>Maj("é")
'É'