Python and Practice
Python While Loop Exercises With Five Beginner Problems
You understand for loops, then a while loop runs forever and your laptop fan starts screaming.
Problem solving coach
Selene coaches students for programming contests. She writes about practice problems, debugging and the habits that help beginners get unstuck on their own.
Python and Practice
You understand for loops, then a while loop runs forever and your laptop fan starts screaming.
Teaching Code
You write a factorial function on the board, explain that it calls itself, and watch a room of beginners go quiet in the bad...
Python and Practice
Most beginner programs spend their time handling text: names typed by users, lines read from files, messages printed back to...
First Steps
You open a blank file, you know roughly what the program should do, and nothing comes out of your fingers.
Python and Practice
You can write a list in Python, you know square brackets hold items, and yet the moment a task says "keep only the even scores"...
Teaching Code
A Parsons problem hands a beginner every line of a working program, then scrambles the order.