Debugging Loops

Here are some Python programs that have issues. It's your job to fix them!

Bug 1

This program should print "Hi" twenty times.

Hint: make sure the number is actually a number!

Bug 2

This program should print "sup" ten times.

Hint: check the error message at the bottom after running!

Bug 3

This program should print "everything is fine" five times.

Hint: know the difference between a colon and a semi-colon!

Bug 4

This program should print "loopme" nine times.

Hint: remember indentation!

Bug 5

This program should print "GOLF BALL" two times.

Hint: check spelling!

results matching ""

    No results matching ""