simple python program using the list


In this program, You will learn how to create a simple python program using a list in Python.


emp = [10, 20, 30, 40, 50]

Example: How to create a simple python program using a list in Python

emp = [10, 20, 30, 40, 50]

print("Emp all data are:", end=" ")
for i in range(0, 5):
    print(emp[i], end=" ")

Output:

Emp all data are: 10 20 30 40 50