conventions.io

Tech Challenge

2026-11-26

🐍

Daily Tech Challenge

Python

medium
Question 1 of 5

One of these two random-module calls raises an error. Which, and why?

Example
import random

a = random.choices([1, 2, 3], k=5)
b = random.sample([1, 2, 3], 5)

Thursday, November 26, 2026 · A new challenge drops every day