def print_list(list,idx=0):
    if(idx == len(list)):
        return
    print(list[idx])
    print_list(list,idx+1)

fruits=["mango","litchi","apple","banana"]

print_list(fruits)


Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: