Program - Create a plain list


Topic: Program - Create a plain list

Solution

def plainlist(n=100000):
    my_list = []
    for i in range(n):
        if i % 5 == 0:
            my_list.append(i)
    return my_list



List all Python Programs