def has_duplicates(lst):
for i in range(0, len(lst)):
for j in range(i + 1, len(lst)):
if lst[i] == lst[j]:
return True
return False
lst1 = ["python", "java", "python", "c", "c", "php", "c"]
print(has_duplicates(lst1))
lst2 = ["python", "java", "c", "php", "swift"]
print(has_duplicates(lst2))
'''
run:
True
False
'''