Chapter 3Free
Python for JavaScript developers (optional bridge).
Read and write the Python the labs use, starting from the JavaScript you already know.
About 3 h 45 min
Start chapter 3
Know this already? Take the 10-minute skip check. Pass it, and you can skip the lessons.
What you will do
- 01Guess firstBefore a new idea, write down what you think. It is never graded.
- 02Learn5 short lessons, one small step at a time.
- 03Build itPort chapter 1's speed script to Python, with tests, then break it 3 ways.
- 04Check6 questions. 2 ask you to type your answer. Pass with 5 right.
- 05ReviewThree quick questions from chapters 1 and 2.
In this chapter
- Where does the install go?After this you can set up a clean Python for any lab, and you always know which Python runs your code.About 25 min
- Your JavaScript, sorted into three binsAfter this you can read the lab scripts of chapters 1 and 3 and predict what they print.About 40 min
- Shapes and slicesAfter this you can read the slicing lines in a PyTorch script and say what shape comes out.About 25 min
- Streams, async and the clockAfter this you can write a load-test client in Python that reports what the user waited for, not what your code happened to notice.About 45 min
- Threads, the GIL and processesAfter this you can say why serious load-test tools run several Python processes, and run one that does.About 25 min
- Build it: the port and five at oncePort chapter 1's speed script to Python with tests, then send five requests at once with asyncio.About 20 min
- Break itChange one thing, guess first, look, and explain.About 30 min
- Chapter check6 questions. 2 ask you to type your answer. Pass with 5 right.About 10 min
- ReviewThree quick questions from chapters 1 and 2.About 5 min
Stuck? Known errors for this chapter
Previous chapter: Chapter 2, What just happened: tokens, the loop, the two phases, and "will it fit?"