59 Program to demonstrate non-default argument in Python

Program:

#non-default arguments:providing argument values during fn call





def display(name,result):  #specifying its values during fn call

    print(name,result)

   

display("Ajay","pass")

display("miller","fail")

display()



'''Note: In non-default arguments, it is mandatory to specify

argument values in fn call'''


Output:

Program to demonstrate non-default argument in python

Previous
Next Post »