[Tutor] Help with Pygame
I downloaded pygame and tried testing it and it didn't work. I tried the latest version of pygame and it didn't work again. I tried moving the file to the place I think the import code gets programs from so it could open pygame. It didn't work and then I tried changing the name of the PythonX folder. My version of python is 3.4.3, the pygame im trying to use is pygame-1.9.2a0.win32-py3.2 Nothing has worked and it gives me this message in the python shell: Traceback (most recent call last): File C:\Python34\Lib\idlelib\Showdot.py, line 1, in module import pygame ImportError: No module named 'pygame' Please Help Sent from Windows Mail ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Help with Pygame
On 07/08/15 23:50, franklinsco...@gmail.com wrote: I downloaded pygame and tried testing it and it didn't work. Traceback (most recent call last): File C:\Python34\Lib\idlelib\Showdot.py, line 1, in module import pygame ImportError: No module named 'pygame' It certainly looks like an installation error. We'd need a lot more specific details about how you installed it and what your folder structure looks like. But this list is really about python and the standard library, you might get better support on Pygame from the pygame mailing list/forum. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Help with Pygame
On 07/08/2015 23:50, franklinsco...@gmail.com wrote: I downloaded pygame and tried testing it and it didn't work. I tried the latest version of pygame and it didn't work again. I tried moving the file to the place I think the import code gets programs from so it could open pygame. It didn't work and then I tried changing the name of the PythonX folder. My version of python is 3.4.3, the pygame im trying to use is pygame-1.9.2a0.win32-py3.2 Nothing has worked and it gives me this message in the python shell: Traceback (most recent call last): File C:\Python34\Lib\idlelib\Showdot.py, line 1, in module import pygame ImportError: No module named 'pygame' Please Help Please help us to help you. I downloaded pygame and tried testing it and it didn't work is less than useless. You need to tell us exactly what you did to install pygame, how you tried to test it and exactly what happened. If there is a traceback cut and paste the complete contents, just as you've done above. Now let's play spot the mistake. My version of python is 3.4.3, ^ the pygame im trying to use is pygame-1.9.2a0.win32-py3.2 --^^^ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Certifications
On Mon, Aug 3, 2015, at 04:55 PM, acolta wrote: Hi, I am new in python, so just curios if there are any good and appreciated python certification programs/courses ? I'm interested in this too, but some googling only finds a 4-part O'Reilly program that's no longer available. They're moving their study materials to https://beta.oreilly.com/learning but I don't see any obvious replacement for this course. You might try Alan Gauld's site http://www.alan-g.me.uk/ (he's on this list), http://learnpythonthehardway.org or http://www.diveintopython3.net/ for step-by-step introduction of concepts. There are also a lot of universities offering classes via OpenCourseWare. But there's no way to earn any kind of formal certificate through these, as far as I know. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Dictionary Issue
On 08/08/15 00:05, Ltc Hotspot wrote: Hi Alan, On line 15, I replaced: 'count[address] = count.get(address, 0) + 1' with 'line = Counter(address)'. line = Counter(address) will create a new Counter object with the address in it with a count value of 1. Every line in the file will create a new Counter, overwriting the previous one. At the end of the loop you will have exactly 1 Counter containing the last item in the loop and a count of 1. Instead create the Counter before the loop and then use the update() method to add the address to it. Recall we talked about reading the Counter documentation? It describes the update() method. One you have the Counter with all the addresses in you can get the max value and key directly without using a second loop and your maxkee and maxval variables. Again read the Counter documentation to see how. Finally remember the imports. You never show us those but the Counter will not work unless you import it. Question: What is the cause of the empty dict? You create it but never use it. You replaced the line where count got populated with your Counter call. So count never gets populated. Just because Counter sounds like count does not mean they are in any way connected. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Certifications
This page is relevant: https://wiki.python.org/moin/PythonTraining Laura ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor