Re: [Tutor] multiply and sum two lists with list comprehension?

2010-01-27 Thread Garrett Hartshaw
> > > Hi, > > I am multipliying two lists so that each of list As elements get multiplied > to the corresponding list Bs. Then I am summing the product. > > For example, A= [1, 2, 3] and B=[2, 2, 2] so that I get [2, 4, 6] after > multiplication and then sum it to get 12. I can do it using map like

[Tutor] AttributeError: Vector instance has no attribute 'Normalize'

2009-11-27 Thread Garrett Hartshaw
The program I am writing gives the following error message when run. Traceback (most recent call last):   File "./space.py", line 177, in     main()   File "./space.py", line 173, in main     player = Ship("space/models/fighter.3ds", "space/models/realistic.bmp", Quaternion(), Vector(0, 0, -30),