samedi 28 janvier 2023

Python randint not working(not printing the answer) [duplicate]

I was working on a project when I realized that random.randint would not print out.
This is my code:

import random

random.randint(1,25)

In the shell it works, but when I put it into a new file it doesn't work (print/display output).
Does anyone know why? Thanks!




Aucun commentaire:

Enregistrer un commentaire