mardi 21 janvier 2020

How to generate a random number such that it is not a power of 2? The output needs to be a list of 8 random numbers

In python, how to generate a random number such that it is not a power of 2? The output needs to be a list of 8 random numbers. This should be done in a single statement (comprehension style) in python.




Aucun commentaire:

Enregistrer un commentaire