Programming Pandit

c/c++/c#/Javav/Python


Latest Update

Monday, November 23, 2020

Python program for passing the ARRAYS /LISTS to Function by G Krishna Chauhan

Source Code

 def fun(food):

     for x in food:

         print(x)

 

fruits = ["apple", "banana", "cherry"]

fun(fruits)



OUTPUT


apple

banana

cherry

No comments:

Post a Comment