In this program, we will display numbers from a list.
Steps to solve the program
- Take a list as input.
- Use for loop to iterate over each element of the list.
- Print the output.
list1 = [1,5,8,0,4]
for val in list1:
print(val,end=" ")
Output :
1 5 8 0 4