On 4/10/2014 6:26 PM, Saba Usmani wrote:
My task is :
Welcome to the tutor list. In what school are you learning Python?
What version of Python? What operating system? What do you use to write
and run your code?
What Python elements have you studied so far? Your code can be greatly
simpli
Hi Saba,
Do you see any similarities between each of the snack choices? Do you
see any differences?
(Did you happen to use copy-and-paste at any time when you wrote the program?)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscrip
On 10/04/14 23:26, Saba Usmani wrote:
My task is :
A food vending machine accepts 10p, 20p, 50p and £1 coins
*/I have designed the following code, but would like to know how to make
it more efficient without making it too complex as I am a beginner
Have you covered functions yet?
If so you
My task is :A food vending machine accepts 10p, 20p, 50p and £1 coins. One or
more coins are inserted and the current credit is calculated and displayed. A
product is selected from those available. The system checks to see if there is
enough credit to purchase the product chosen. If there is not