Re: [Tutor] ImportError: No module named...

2016-04-17 Thread Danny Yoo
> But I get the following error code on line 1 > > ImportError: No module named pdfgen > Is reportlab.pdfgen a standard part of that package's installation? You might want to check for possible conflicts with other things called reportlab. Do you have any files in the current directory that are

[Tutor] ImportError: No module named...

2016-04-17 Thread Marco Soldavini
I am running this configuration Win7 64 bit Python 2.7.9 PyCharm Community Edition 4.5.4 Reportlab-2.8.win32-py2.7 I am try to running this simple example code from reportlab.pdfgen import canvas from reportlab.platypus import Image im = Image ("logo.jpg") c = canvas.Canvas("hello.pdf") c.drawS

Re: [Tutor] operations on lists

2016-04-17 Thread Ondřej Rusek
marcus lütolf píše v St 13. 04. 2016 v 21:41 +0200: > Hello experts > > I'am working exercise 5. of 'Practical Programming 2nd edition, .using > Python 3' (operations on lists). > The following code get's me wrong results: > > >>> metals = [['beryllium', 4],['magnesium', 12], ['calcium', 20