How can I make a function that tests different variables for certain characteristics? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I make a function that tests different variables for certain characteristics?

I want to make a function that can test a defined variable for the variable chance. For example, if the number chosen for chance is 7, the function would find a variable that has the string: chance = 7

25th Jan 2017, 8:51 PM
Nathan Watkins
Nathan Watkins - avatar
1 Answer
0
First, what do you want to do exactly? Second, can't you do it yourself? Third, what's the point?
25th Jan 2017, 10:12 PM
Amaras A
Amaras A - avatar