The program below asks the user for an input word. It should then scan the word to count the number of "A" characters and also determine if the first or last letter is an "A". The input word is first converted to all uppercase letters, so any input lowercase "a" character can also be counted as an "A". Here is some sample output:

Enter a word: America
There are 2 As in AMERICA
AMERICA starts with A
AMERICA ends with A
Where shown by the comments, replace the "?" placeholders with code to complete the following steps:

Use the upper() function to convert the word variable to uppercase, and store the result back in word.
Use the count() function to see how many letter "A" characters are in the word.
Use the startswith() function to see if the word starts with "A".
Use the endswith() function to see if the word ends with "A".
Remember, there is more than one way to call a string function. You can use, for example, str.upper(word) or word.upper() - both will work and receive credit.

The following examples demonstrate the expected program output.

Enter a word: banana
There are 3 As in BANANA
BANANA does not start with A
BANANA ends with A
Enter a word: everything
There are no As in EVERYTHING
EVERYTHING does not start with A
EVERYTHING does not end with A
Enter a word: Apple
There is one A in APPLE
APPLE starts with A
APPLE does not end with A

word = input("Enter a word: ")

# convert word to upper-case
word = ?

# count the number of letter "A"s in word
a_count = ?

if a_count > 1:
print("There are", a_count, "As in", word)
elif a_count == 1:
print("There is one A in", word)
else:
print("There are no As in", word)

# see if the word starts with "A"
if ?:
print(word, "starts with A")
else:
print(word, "does not start with A")

# see if the word ends with "A"
if ?:
print(word, "ends with A")
else:
print(word, "does not end with A")

word = input("Enter a word: ")

# convert word to upper-case
word = word.upper()

# count the number of letter "A"s in word
a_count = word.count("A")

if a_count > 1:
print("There are", a_count, "As in", word)
elif a_count == 1:
print("There is one A in", word)
else:
print("There are no As in", word)

# see if the word starts with "A"
if word.startswith("A"):
print(word, "starts with A")
else:
print(word, "does not start with A")

# see if the word ends with "A"
if word.endswith("A"):
print(word, "ends with A")
else:
print(word, "does not end with A")