How to write a program that generates and prints 50 random integers,each between 3 and 6 in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

How to write a program that generates and prints 50 random integers,each between 3 and 6 in python

19th May 2020, 3:07 PM
Elliot
4 Answers
+ 2
Your attempt??
19th May 2020, 3:10 PM
Arsenic
Arsenic - avatar
+ 1
I will not provide you with code. But here is all you need to know👇 It is a straight forward implementation of randint() function. Learn more about it here👇 https://www.geeksforgeeks.org/JUMP_LINK__&&__python__&&__JUMP_LINK-randint-function/
19th May 2020, 3:16 PM
Arsenic
Arsenic - avatar
0
I got in a book and I'm just beginner and i don't get the question
19th May 2020, 3:11 PM
Elliot
- 1
a= [random.radint(3,7) for _ in range(50)]
19th May 2020, 7:32 PM
george
george - avatar