In Python,
#Create a basket class, which has a class/static attribute pricelist (string/float dictionary - you can hardcode this)
#The constructor should set the name to the name passed as a parameter and initialise the contents (empty)
#You should provide an addItem method taking product,quantity which adds this to the contents
#and a getQuantity method taking a product, which returns the relevant quantity
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here