Skip to content

Commit 1385b01

Browse files
committed
itertools readme update for traffic lights instruction set
1 parent 3ac6cee commit 1385b01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

days/19-21-itertools/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ After watching the first 4 videos pop into your Python shell and start playing a
1616

1717
Yep that's right! For your second day, use itertools to create a script that simulates traffic lights!
1818

19+
The idea is to perhaps... *cycle* (hint hint!) through the different colours of a set of traffic lights - red, amber and green - printing the name of the colour every time the cycle occurs.
20+
21+
For bonus points: traffic lights normally cycle between green and red based on traffic levels so you never know exactly when the change will happen. This is a great chance to throw some randomness into your script.
22+
1923
If you get absolutely stuck, watch the *Traffic Lights* video to see how we did it.
2024

2125

@@ -40,4 +44,4 @@ Be sure to share your last couple of days work on Twitter or Facebook. Use the h
4044

4145
Here are [some examples](https://twitter.com/search?q=%23100DaysOfCode) to inspire you. Consider including [@talkpython](https://twitter.com/talkpython) and [@pybites](https://twitter.com/pybites) in your tweets.
4246

43-
*See a mistake in these instructions? Please [submit a new issue](https://github.com/talkpython/100daysofcode-with-python-course/issues) or fix it and [submit a PR](https://github.com/talkpython/100daysofcode-with-python-course/pulls).*
47+
*See a mistake in these instructions? Please [submit a new issue](https://github.com/talkpython/100daysofcode-with-python-course/issues) or fix it and [submit a PR](https://github.com/talkpython/100daysofcode-with-python-course/pulls).*

0 commit comments

Comments
 (0)