Need button and smaller code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
14th Oct 2019, 7:58 PM
Dogukan KÖÇKAR
5 Answers
+ 6
Hello! Please try to state your problem with as much detail as you can. What exactly are you having troubles with? If you need help with something, don't just ask people to do the work for you, but try to get help with allowing yourself to fix the problem
14th Oct 2019, 8:36 PM
Faisal
Faisal - avatar
0
I'm asking for how to smaller write that code It must be random range all time diffirent I did like this .randint (1,250) .randint (95,300) ... I need idea how to write smaller this
14th Oct 2019, 8:44 PM
Dogukan KÖÇKAR
0
You code runs, but.... what are you trying to do? what output do you actually want? help us, so we can help you.
14th Oct 2019, 9:11 PM
rodwynnejones
rodwynnejones - avatar
0
I posted before what i need I want to learn how to small write random.randint(××,××) I was write code 3 time for diffirent range. 1 more tihnk Can I write 1 time this code ? and run multiple times?
14th Oct 2019, 9:20 PM
Dogukan KÖÇKAR
0
Define a function that takes two parameters and returns the randint with those params passed in.
14th Oct 2019, 9:44 PM
rodwynnejones
rodwynnejones - avatar