Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Alex Kleider
On Aug 7, 2015 1:18 AM, Cameron Simpson c...@zip.com.au 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

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

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?

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Ltc Hotspot
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 methods? Hal On Thu, Aug 6, 2015 at

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Ltc Hotspot
Question1: How type of argument should I use for dict, i.e.,user argument or list argument. Read captured traceback: TypeError Traceback (most recent call last) C:\Users\vm\Desktop\apps\docs\Python\assignment_9_4_26.py in module() 1 fname = raw_input(Enter file name: ) 2 handle =

Re: [Tutor] Fraction Class HELP ME PLEASE!

2015-08-07 Thread Quiles, Stephanie
thanks Cameron! Here is what i have so far… new question… how do i test the iadd, imul, etc. operators? Hopefully this time the indents show up. And yes the beginning code came out of our text book I added on some functions myself but they give you a big chunk of it. I am hoping that this is

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Alan Gauld
On 07/08/15 01:15, Ltc Hotspot wrote: Question1: How type of argument should I use for dict, i.e.,user argument or list argument. Read captured traceback: TypeError Traceback (most recent call last) C:\Users\vm\Desktop\apps\docs\Python\assignment_9_4_26.py in module() 1 fname =

Re: [Tutor] Fraction Class HELP ME PLEASE!

2015-08-07 Thread Quiles, Stephanie
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 i submitted. responses are below and here

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Cameron Simpson
On 06Aug2015 11:03, ALAN GAULD alan.ga...@btinternet.com 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

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

Re: [Tutor] Fraction Class HELP ME PLEASE!

2015-08-07 Thread Cameron Simpson
On 07Aug2015 03:09, Quiles, Stephanie stephanie.quiles...@albright.edu 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

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

[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

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

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 breamore...@yahoo.co.uk

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

Re: [Tutor] Pep 8, about indentation

2015-08-07 Thread Cameron Simpson
On 07Aug2015 12:19, Alex Kleider aklei...@sonic.net wrote: On Aug 7, 2015 1:18 AM, Cameron Simpson c...@zip.com.au 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

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 aklei...@sonic.net wrote: On Aug 7, 2015 1:18 AM, Cameron Simpson c...@zip.com.au 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