Pythons abilities | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Pythons abilities

Is there something in python that allows you to randomly generate a number and be able to assign it

11th Jan 2018, 5:07 AM
mYstic
mYstic - avatar
2 Réponses
+ 1
Generates a random number from defined range (0 to 9 in the example), assigns it and prints it https://code.sololearn.com/cQcm9HnVGh6j/?ref=app
11th Jan 2018, 3:13 PM
snaykey
snaykey - avatar
0
Thanks i needed that
11th Jan 2018, 3:33 PM
mYstic
mYstic - avatar