names_list = []

for i in range(3):  #  read 3 names
    first_name = input("Enter first name: ")
    last_name = input("Enter last name: ")
    names_list.append(f"{first_name} - {last_name}")

print(names_list)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: