[Tutor] question

dn PythonList at DancesWithMice.info
Wed Apr 12 03:50:22 EDT 2023


On 12/04/2023 18.28, Prayash Bhuyan wrote:
> I know how to generate random numbers using random function but I want to
> know how do i generate random numbers say between (1,5) where each random
> number can only be repeated only 4 times........please help

Do you know how to write a loop in Python?
Do you know about dict[ionary]s?
Are we talking about integers or real numbers?
(or suites in a deck of cards)
Is this a course-assignment?

Please show some code...
then we will be able to discuss what's missing or what might be added.

-- 
Regards,
=dn


More information about the Tutor mailing list