parameterized function

Asked by Sujit kumar

I want to use one function for different types of parameters or arguments. Means i want to run one script for different inputs/parameters. So is it possible? how

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sujit kumar (sujeetvaishnav) said :
#1

please give me solution.

Revision history for this message
obiwan-92 (obiwan-92) said :
#2

Hello,

Yes it is possible. You are in python.
What type of parameters do you want to manage ?

An example of what you can do :
def fct1(var1, var2):
    print var1, var2

This method will ever worked what ever I give it in parameters.

Regards.

Can you help with this problem?

Provide an answer of your own, or ask Sujit kumar for more information if necessary.

To post a message you must log in.