Is there a way to use random.choice in a manner that it will select a random letter from a str a random number of times?
```def drugname(v,c):
con = random.choice(c)
if con == "q":
vowel = "u"
else:
vowel = random.choice(v)
return con + vowel
```
I am trying to figure out how to get random.choice(c) and random.choice(v) to get selected a random number of times.
Aucun commentaire:
Enregistrer un commentaire