Python (Assignment (solve please fast))

MY Assignment:-
Somebody please solve my brother, I will thank him

Problem statement
Assignment Submission

White a Python program to accept a list from the user and print the alternate element of list

1 Like

Initialize list without any element

myList = []

Get number of elements, list should have in total

n = int(input("Enter number of elements in list: "))

Use for loop to get each element of list one-by-one

for i in range(n):
num = input("")

print the list with all inserted elements

print(“List:”, myList)