Respuesta :

The  function that takes a word less than 25 characters long and returns the letter that word starts with in capital letters is as follows:

def first_letter(x):

   if len(x) < 25:

       for i in x:

           return x[0].upper()

   else:

      return "Your text should be less than 25 characters"

print(first_letter("brainly"))

The code is written in python.

We declared a function named first_letter with the parameter x.

If the length of the word is less than 25 characters, we loop through it and return the first letter in uppercase.

Else if the word is not less than 25 character we ask the user to input a word less than 25 characters.

Finally, we call the function with a print statement.

The bolded portion of the code are python keywords.

read more: https://brainly.com/question/14603294?referrer=searchResults

Ver imagen vintechnology