Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/16-Random-Colors-Loop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Let's say that we are teachers in a 10 student classroom, and we want to randoml

## 📝 Instructions:

1. Change the function `get_allStudentColors` so it returns a list of 10 colors, where each item in the list represents the color assigned to each student.
1. Change the function `get_allStudentColors` so it returns a list of 20 colors, where each item in the list represents the color assigned to each student.

## 💡 Hints:

Expand Down
2 changes: 1 addition & 1 deletion exercises/16-Random-Colors-Loop/solution.hide.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_allStudentColors():
example_color = get_color(1)
students_array = []
# ✅ ↓ your loop here ↓ ✅
for i in range(10):
for i in range(20):
students_array.append(get_color(random.randint(0,3)))

return students_array
Expand Down