def organizeWords(listOfStr):
''' Function that takes in a list of strings, and returns a dictionary
where the keys are capital characters, and each key's corresponding
value is a list containing all strings in listOfStr (in all capital
letters) that start with the key character in capital letters in the order that they appear in listOfStr.
* An empty listOfStr should return an empty dictionary
* You may assume listOfStr ONLY contains string elements (or is empty)
* The empty string ('') should not be stored in the dictionary
* Consider using the string's .upper() method when creating keys in
the dictionary, and creating list values in the dictionary.
'''
# COMPLETE YOUR FUNCTION DEFINITION HERE
assert organizeWords([]) == {}
D = organizeWords(["CS8"])
assert ("C" in D) == True
assert ("c" in D) == False
assert D["C"] == ["CS8"]
D = organizeWords(["Python", "is", "awesome", ""])
assert ("i" in D) == False
assert ("P" in D) == True
assert ("I" in D) == True
assert ("A" in D) == True
assert ("a" in D) == False
assert ("" in D) == False
assert D["P"] == ["PYTHON"]
assert D["I"] == ["IS"]
assert D["A"] == ["AWESOME"]
D = organizeWords(["Ant", "antler", "ART", "Car", "", "bee", "can"])
assert ("b" in D) == False
assert ("B" in D) == True
assert ("a" in D) == False
assert ("A" in D) == True
assert ("C" in D) == True
assert ("" in D) == False
assert D["A"] == ["ANT", "ANTLER", "ART"]
assert D["C"] == ["CAR", "CAN"]
assert D["B"] == ["BEE"]