vendredi 14 août 2020

How to generate list of random numbers in Python with some None values?

Can I generate a list of random numbers in Python with a mix of 'None' values?

e.g.

randomList = [10, 22, 1, None, 98, 43, None ]

or

randomList = [10, 22, 1, , 98, 43, , 49 ]



Aucun commentaire:

Enregistrer un commentaire