Re: [Tutor] Help with Pygame

2015-08-07 Thread Alan Gauld
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 import pygame ImportError: No module named 'pygame' It certainly looks like an ins

Re: [Tutor] DEALING WITH API

2015-08-07 Thread Gaurav Lathwal
Thank you everyone for your help. I managed to make a somewhat working model of what I had in my mind. I will be sharing my code with you. Please tell me how to improve it. I think it could be done in much less number of lines. http://pastie.org/10336178 The first part which is handling the downl

[Tutor] Help with Pygame

2015-08-07 Thread franklinscottc
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 f

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Alex Kleider
On 2015-08-07 20:56, Cameron Simpson wrote: On 07Aug2015 12:19, Alex Kleider wrote: On Aug 7, 2015 1:18 AM, Cameron Simpson wrote: However, when _editing_ I tell vi that when I press TAB it is to insert enough SPACE characters to get to the next 4 column position. How do you do that? I've

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Cameron Simpson
On 07Aug2015 12:19, Alex Kleider wrote: On Aug 7, 2015 1:18 AM, Cameron Simpson wrote: However, when _editing_ I tell vi that when I press TAB it is to insert enough SPACE characters to get to the next 4 column position. How do you do that? I've got vim set up so a CTRL-T while in insert mod

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Alan Gauld
On 07/08/15 19:18, Ltc Hotspot wrote: I want to find the max val , keys and values are defined on line 10: for kee, val in count.items(): Yes we know that, but you are not answering the questions we pose. Instead you seem to post random changes to your code and ask new questions which makes

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Ltc Hotspot
Hi Mark, Why is Counter not defined on line #15: line = Counter(address),i.e., NameError: name 'Counter' is not defined? Share a chat session at http://tinyurl.com/oull2fw View line entry at http://tinyurl.com/oggzn97 Hal On Fri, Aug 7, 2015 at 12:14 AM, Mark Lawrence wrote: > On 07/08/2015 0

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Ltc Hotspot
Alan, I want to find the max val , keys and values are defined on line 10: for kee, val in count.items(): Then, maxval determines the max value on line 11: if val > maxval: right, view a copy of the revised code at http://tinyurl.com/nvzdw8k Question1: are these assumptions true, above? Ques

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Alex Kleider
On Aug 7, 2015 1:18 AM, Cameron Simpson wrote: > > > However, when _editing_ I tell vi that when I press TAB it is to insert > enough > SPACE characters to get to the next 4 column position. How do you do that? I've got vim set up so a CTRL-T while in insert mode does that (and CTRL-D does

Re: [Tutor] DEALING WITH API

2015-08-07 Thread Alan Gauld
On 07/08/15 10:14, Gaurav Lathwal wrote: This time I am trying to fetch the required data using the API of the website. Which website? Don;t assume we can remember from your previous post or that we will want to go trawling the archives. The easier you make it for us to answer the more likely

Re: [Tutor] DEALING WITH API

2015-08-07 Thread Joel Goldstick
On Fri, Aug 7, 2015 at 1:46 PM, Emile van Sebille wrote: > On 8/7/2015 2:14 AM, Gaurav Lathwal wrote: >> >> Hello everyone. :)) >> >> This time I am trying to fetch the required data using the API of the >> website. >> But, the problem I am having is I don't know how to make the request >> properl

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Alan Gauld
On 07/08/15 09:18, Cameron Simpson wrote: On 06Aug2015 11:03, ALAN GAULD wrote: Yes, but that comes from the days of mechanical typewriters not any study of code comprehension. I beg to differ a little. Old _teletypes_ and terminals used 8 character TAB spacing. Quite right, I realized af

Re: [Tutor] DEALING WITH API

2015-08-07 Thread Emile van Sebille
On 8/7/2015 2:14 AM, Gaurav Lathwal wrote: Hello everyone. :)) This time I am trying to fetch the required data using the API of the website. But, the problem I am having is I don't know how to make the request properly. When I enter the required URL in my browser, it downloads a .tgz which incl

[Tutor] DEALING WITH API

2015-08-07 Thread Gaurav Lathwal
Hello everyone. :)) This time I am trying to fetch the required data using the API of the website. But, the problem I am having is I don't know how to make the request properly. When I enter the required URL in my browser, it downloads a .tgz which includes all the updates that have taken place on

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Emile van Sebille
On 8/6/2015 5:30 PM, Ltc Hotspot wrote: I'm following the instructor's video exercise, available at https://www.youtube.com/watch?v=3cwXN5_3K6Q. As you're clearly interested in learning python, you may find working the tutorial beneficial as it steps you through the fundamentals of python i

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Cameron Simpson
On 06Aug2015 11:03, ALAN GAULD wrote: On 06/08/15 04:40, Steven D'Aprano wrote: Um, the oldest standard for TABs is *eight* spaces, not 3 or 4, Yes, but that comes from the days of mechanical typewriters not any study of code comprehension. [...snip...] I beg to differ a little. Old _telet

Re: [Tutor] Fraction Class HELP ME PLEASE!

2015-08-07 Thread Cameron Simpson
On 07Aug2015 03:09, Quiles, Stephanie wrote: Hello again Cameron, Thank you, your reply is most helpful. Responses and updated code below. Thoughts would be appreciated. The assignment has been sent as my deadline was 11pm EST. But i was able to implement your suggestions and tips right before

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Mark Lawrence
On 07/08/2015 01:30, Ltc Hotspot wrote: Mark, I'm following the instructor's video exercise, available at https://www.youtube.com/watch?v=3cwXN5_3K6Q. View attached screen shot file, image file shows a copy of the counter: cou[wrd] =cou.get(wrd,0) +1 Please, explain the differences in counter