Код: Выделить всё
fruits = []
# Loop to take input 7 times
for i in range(7):
fruit = input(f"Enter Fruit name {i + 1}: ")
fruits.append(fruit)
print("Here's the list of fruits you entered:")
print(fruits)
Подробнее здесь: https://stackoverflow.com/questions/790 ... d-for-loop