mardi 4 février 2020

Trying to print a random integer using the Python Random Module returns a syntax error [closed]

This is my code:

import random number=(random.randint(10,20) print("The randomly generated number is:", number)

This returns an invalid syntax error for the print function.

I am not allowed to change the print fun Tionesta for this code, and I know that it is most likely a very simple problem, but I just can't seem to figure it out.




Aucun commentaire:

Enregistrer un commentaire