vendredi 23 octobre 2015

which random am i looking for to achieve this:

Trying to just generate a random amount of either [ or ].

sample = random.choice("[]")

The above prints either [ or ], how can I get it to print a random number of either or both of these?




Aucun commentaire:

Enregistrer un commentaire