3. Short-Term Memory


Why can't I multiply the scan vs. typing out each scan?



cashRegister.scan ("eggs"*2)
cashRegister.scan ("magazine"*3)



what you do there will just multiply the string, you need to modify the scan method then.

you could give the method two parameters: item and quantity for example, you might do this in later exercise


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.