Tagged: debugging

Everything tagged "debugging", newest first.

Coding Practice ·

Python Coding Exercise #51: Even Numbers, Countdown and Counting Up

Three beginner Python exercises on while loops with a condition instead of while True — print the even numbers up to 30, fix a broken countdown, and print every number below a limit.

Coding Practice ·

Python Coding Exercise #45: Fix the Code: Countdown

A beginner Python debugging exercise on while True and break — a countdown stops after the first number because the break condition is the wrong way round, and the fix is one symbol.

Coding Practice ·

Python Coding Exercise #29: Fix the Syntax

A beginner Python debugging exercise — find and fix ten syntax, indentation and type errors in a short program, and learn how to read Python's error messages.

Coding Practice ·

Python Coding Exercise #19: Loyalty Bonus

A beginner Python debugging exercise on if and else — why two separate if statements can both run when the first one changes the variable the second one checks, and how to fix it.

Coding Practice ·

Python Coding Exercise #10: Fix the Code (Product)

A beginner Python debugging exercise — why a program that asks for three numbers prints 125 instead of 30, and how using separate variables fixes it.

All tags