mardi 11 juin 2019

How can I generate list of random odd numbers from 1 to 99 (including) in python

I am using the following code:-

my_list = range(1,99) 
list_Odd_Numbers = list(filter(lambda varX: varX % 2 == 1,my_list)) 
print(list_Odd_Numbers)

I want random and infinite loop




Aucun commentaire:

Enregistrer un commentaire