Write a program that prints the first 10 even numbers. The output should be – 2 4 6 8 10 12 14 16 18 20 You need to log in or create an account to submit code!
It seems Bert is a bit of a maths fan! He loves square numbers so much that he decided to write a python program to print out the first 100 of them. He managed to write some of the code but he got stuck with the while loop. Your task is simple. Finish off the […]
The best way to fall asleep is to count backwards from 100 to 1. Of course this would be the perfect candidate for a python program. Goes without saying! Write a program which will output the numbers from 100 to 1. Sample output would be – 100 99 98 .. etc You need to log […]
You need to write a program which will count down from 10 to 0 and display blast off! You will need to get python to wait for a second inside the loop. This can be done using the time library (see the link below). You should look at the sleep method. http://docs.python.org/library/time.html You […]
Write a program which will output the lyrics to the song 99 bottles of beer. http://99-bottles-of-beer.net/lyrics.html To get the marks you MUST use a while loop…. You need to log in or create an account to submit code!