- random
- sample
Solution: Fruit salad
examples/numbers/fruit_salad.py
import random fruits = ["Apple", "Banana", "Peach", "Orange", "Durian", "Papaya"] salad = random.sample(fruits, 3) print(salad)
import random fruits = ["Apple", "Banana", "Peach", "Orange", "Durian", "Papaya"] salad = random.sample(fruits, 3) print(salad)