Answer the question
In order to leave comments, you need to log in
Recursion in python using random as an example?
import random
def rand():
a =random.randint(1,2)
return a
Answer the question
In order to leave comments, you need to log in
Not strong in Python:
import random
def rand():
a = random.randint(1,2)
while (a != 2):
a = rand()
return a
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question