FreeKB - Python (Scripting) Pass values into a subroutine
Python (Scripting) - Pass values into a subroutine

In this example, values "Hello" and then "World" are passed into the foo subroutine.

foo("Hello")
foo("World")

 

The values passed into the foo subroutines are placed in the bar variable.

def foo(bar):
  print(bar)

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter e0438 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |