How to assign multiple pseudorandom numbers to a single tuple

Asked

Viewed 10 times

0

I would like to know how to use the Random.randint() command to assign not only one, but several numbers to a tuple?

wanted to assign 5 variables inside the tuple to then draw which one is the largest and which is the smallest (Simple exercise of beginners, but I don’t know how to do this)

from random import randint as ri
numeros = ri(1, 10)
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.