def words():
quote = input("Enter a 1 sentence quote, non-alpha separate words: ")
word = ""
for ltr in quote:
if ltr.isalpha():
word = word + ltr
else:
if word[0].lower() > "g":
print(word.upper())
word = ""
else:
word = ""
Seriously I do not know what to do.
word[0].lowerwill throw out the error because word may be empty.