Re: [Tutor] python Task

2010-09-30 Thread Steven D'Aprano
On Fri, 1 Oct 2010 08:38:31 am Dipo Elegbede wrote: > 4.4 An integer greater than 1 is said to be prime if it is divisible > by only 1 and itself. For example, > 2, 3, 5 and 7 are prime numbers, but 4, 6, 8 and 9 are not. > a) Write a function that determines whether a number is prime. The first

[Tutor] python Task

2010-09-30 Thread Dipo Elegbede
Kindly help me with the following tasks. You may want to start with explanations for me and then pseudo-codes, I should be able to take it from there. They are exercises from deitel how to program for Python. I have done a lot of thinking and its almost discouraging me. Please help. Thanks. 4.4 A