Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Can somone fix this? BTW the program that i am using is python 3

+3 votes
asked Feb 12 by Christopher Bartholf (270 points)
import random
number = random.sample(range(1,12, 11)
print = (number)

1 Answer

0 votes
answered Feb 12 by Jeff The Chicken (2,810 points)

You need to have a k= parameter for the sample function:

number = random.sample(range(1,12,11),k=PUT k PARAMETER HERE)

I'm not entirely sure how you should proceed from there but this link may help:

https://www.w3schools.com/python/ref_random_sample.asp

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...