Subash Chandran posted: "import random #1.A single element random.choice(list) #2.Multiple elements with replacement random.choices(list, k = 4) #3.Multiple elements without replacement random.sample(list, 4)"
|

Subash Chandran posted: "import random #1.A single element random.choice(list) #2.Multiple elements with replacement random.choices(list, k = 4) #3.Multiple elements without replacement random.sample(list, 4)"
|
Write a newfangled code fragment at an earlier stage to use it. Then call another method and make sure their input is the correct one. The s...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.