To compare the first letter of an element in a list of names with a letter inputted in Python, you can use a for loop to iterate over the list of names. For each element in the list, you can use the str.startswith() method to check if the element's name starts with the letter inputted. For example:
names = ["John", "Jane", "David", "Alex"]
letter = "J"
for name in names:
if name.startswith(letter):
print(name)