samedi 28 novembre 2015

How print a variable randomly in a list

In python

For Example:

import random
Bandit="B"
List=["","","",""]

What i want it to print out as:

print["B","","B",""] or ["","B","","B"]  




Aucun commentaire:

Enregistrer un commentaire