On 24/11/16 23:14, urfa jamil wrote:
> I need help to write a code for this problem.
> 
> Please help

OK, But what exactly do you want help with? Have you written any code
yet? If so show us. Also if you get an error message post it.

> Ask the user to enter a series of numbers. 

Can you do this bit?
Can you get the user to enter a single number and store it?

> Stop reading numbers when they enter a negative number. 

Can you do this bit?


> Calculate the average of the numbers given 

Can you calculate the average of a collection of numbers?

> not including the final negative number.

Can you exclude the last element?

> Question 9 options:

No idea what that means!


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to