How to pick out the same titles.

2016-10-16 Thread Seymore4Head
How to pick out the same titles. I have a long text file that has movie titles in it and I would like to find dupes. The thing is that sometimes I have one called "The Killing Fields" and it also could be listed as "Killing Fields" Sometimes the title will have the date a year off. What I

OT Winmx works again

2016-08-11 Thread Seymore4Head
-- https://mail.python.org/mailman/listinfo/python-list

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Wed, 6 Jul 2016 01:05:12 +0100, MRAB <pyt...@mrabarnett.plus.com> wrote: >On 2016-07-06 00:45, Seymore4Head wrote: >> On Tue, 05 Jul 2016 19:29:21 -0400, Seymore4Head >> <Seymore4Head@Hotmail.invalid> wrote: >> >>>On Tue, 5 Jul 2016 19:15:23 -0400, J

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Wed, 6 Jul 2016 09:38:47 +1000, Chris Angelico <ros...@gmail.com> wrote: >On Wed, Jul 6, 2016 at 9:04 AM, Seymore4Head ><Seymore4Head@hotmail.invalid> wrote: >> I am using XP and launching the program from another drive/folder than >> the boot drive. >&

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Tue, 05 Jul 2016 19:29:21 -0400, Seymore4Head <Seymore4Head@Hotmail.invalid> wrote: >On Tue, 5 Jul 2016 19:15:23 -0400, Joel Goldstick ><joel.goldst...@gmail.com> wrote: > >>On Tue, Jul 5, 2016 at 7:03 PM, MRAB <pyt...@mrabarnett.plus.com> wrote: >>&g

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Tue, 5 Jul 2016 19:15:23 -0400, Joel Goldstick <joel.goldst...@gmail.com> wrote: >On Tue, Jul 5, 2016 at 7:03 PM, MRAB <pyt...@mrabarnett.plus.com> wrote: >> On 2016-07-05 23:05, Seymore4Head wrote: >>> >>> import os >>> >>> f_in

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Wed, 6 Jul 2016 00:03:29 +0100, MRAB <pyt...@mrabarnett.plus.com> wrote: >On 2016-07-05 23:05, Seymore4Head wrote: >> import os >> >> f_in = open('win.txt', 'r') >> f_out = open('win_new.txt', 'w') >> >> for line in f_in.read().splitlines(): >&

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Tue, 5 Jul 2016 18:40:51 -0400, Joel Goldstick <joel.goldst...@gmail.com> wrote: >On Tue, Jul 5, 2016 at 6:29 PM, Seymore4Head ><Seymore4Head@hotmail.invalid> wrote: >> On Tue, 5 Jul 2016 18:27:25 -0400, Joel Goldstick >> <joel.goldst...@gmail.com> wrote:

Re: Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
On Tue, 5 Jul 2016 18:27:25 -0400, Joel Goldstick <joel.goldst...@gmail.com> wrote: >On Tue, Jul 5, 2016 at 6:05 PM, Seymore4Head ><Seymore4Head@hotmail.invalid> wrote: >> import os >> >> f_in = open('win.txt', 'r') >> f_out = open('win_new.txt', 'w'

Appending an asterisk to the end of each line

2016-07-05 Thread Seymore4Head
import os f_in = open('win.txt', 'r') f_out = open('win_new.txt', 'w') for line in f_in.read().splitlines(): f_out.write(line + " *\n") f_in.close() f_out.close() os.rename('win.txt', 'win_old.txt') os.rename('win_new.txt', 'win.txt') I just tried to reuse this program that was posted

Re: Python path and append

2016-04-26 Thread Seymore4Head
On Tue, 26 Apr 2016 19:16:56 +0100, Michael wrote: >If you want to read an entire file, append a space and asterisk and write it >to another file, this is the code you need: > >infile = open('win.txt', 'r') >text = f.read() >infile.close() >text += " *" >outfile =

Re: Python path and append

2016-04-26 Thread Seymore4Head
On Tue, 26 Apr 2016 11:53:57 +1000, Steven D'Aprano <st...@pearwood.info> wrote: >On Tue, 26 Apr 2016 08:04 am, Seymore4Head wrote: > >> BTW I was trying to use a line like yours that used an output file >> that didn't exist and was getting an error.  I assume

Re: Python path and append

2016-04-25 Thread Seymore4Head
On Mon, 25 Apr 2016 21:26:34 + (UTC), John Gordon <gor...@panix.com> wrote: >In <27nshbp40p1llr231dqm31p754tvurk...@4ax.com> Seymore4Head ><Seymore4Head@Hotmail.invalid> writes: > >> On Tue, 19 Apr 2016 18:29:38 -0400, Seymore4Head >> <Seymore4He

Re: Python path and append

2016-04-25 Thread Seymore4Head
ing some other character. It's safer to use >line.rstrip("\n"). > >> -----Original Message- >> From: Python-list >> [mailto:python-list-bounces+joaquin.alzola=lebara@python.org] On Behalf >> Of Seymore4Head >> Sent: 25 April 2016 20:01 >>

Re: Python path and append

2016-04-25 Thread Seymore4Head
tripped from the beginning and the end of the string (default whitespace >characters). > >Use to remove return carriage--> line[:-1] > >-Original Message- >From: Python-list >[mailto:python-list-bounces+joaquin.alzola=lebara@python.org] On Behalf Of >Seymore4Head &g

Re: Python path and append

2016-04-25 Thread Seymore4Head
On Mon, 25 Apr 2016 18:24:02 - (UTC), Rob Gaddi <rgaddi@highlandtechnology.invalid> wrote: >Seymore4Head wrote: > >> On Tue, 19 Apr 2016 18:29:38 -0400, Seymore4Head >> <Seymore4Head@Hotmail.invalid> wrote: >> >> I am going to forget using a direct

Re: Python path and append

2016-04-25 Thread Seymore4Head
On Tue, 19 Apr 2016 18:29:38 -0400, Seymore4Head <Seymore4Head@Hotmail.invalid> wrote: I am going to forget using a directory path. I would like to take the file win.txt and append a space and the * symbol. f = open('win.txt', 'r+') for line in f: f.read(line) f.writ

Python path and append

2016-04-19 Thread Seymore4Head
This doesn't work. Does Python recognize hidden directories? handle = open("\\Winmx\New$\q.txt") for line in handle: line=line.strip() print line Traceback (most recent call last): File "\\Winmx\New$\add viewed.py", line 2, in handle = open("\\Winmx\New$\q.txt") IOError:

OTish Wells Fargo sucks

2016-03-14 Thread Seymore4Head
Wells Fargo online will not allow you to change a payee's address. You have to delete the account and re enter it. I have had most of my bills on autopay for at least 15 years. The last utility company to make the change was the water company. For some reason their system could not take checks

The computer that mastered Go

2016-01-29 Thread Seymore4Head
https://www.youtube.com/watch?v=g-dKXOlsf98 -- https://mail.python.org/mailman/listinfo/python-list

Re: Does Python 2.7 do Open Office

2015-12-03 Thread Seymore4Head
On Thu, 03 Dec 2015 01:54:16 +0100, Laura Creighton <l...@openend.se> wrote: >In a message of Wed, 02 Dec 2015 18:50:34 -0500, Seymore4Head writes: >>I have a text file I would like to search through but I have tried it >>before. I don't remember why they are not compa

Re: Does Python 2.7 do Open Office

2015-12-03 Thread Seymore4Head
On Thu, 3 Dec 2015 00:47:42 +, MRAB <pyt...@mrabarnett.plus.com> wrote: >On 2015-12-02 23:50, Seymore4Head wrote: >> I have a text file I would like to search through but I have tried it >> before. I don't remember why they are not compatible together, but I >>

Does Python 2.7 do Open Office

2015-12-02 Thread Seymore4Head
I have a text file I would like to search through but I have tried it before. I don't remember why they are not compatible together, but I wanted to ask to make sure. I know I can convert the file to plain text but it would be nice not to have to do that. --

Re: error help import random

2015-11-20 Thread Seymore4Head
On Fri, 20 Nov 2015 09:22:10 -0800 (PST), Dylan Riley wrote: >This is my fortune cookie program i wrote in python. >the problem is it will not run past the first line of input. >could someone please identify the error and explain to me why. >here is the code: > >#the

Generate a random list of numbers

2015-11-19 Thread Seymore4Head
Why does a work and b doesn't? What I was trying to accomplish with b is to get a random list (of random length) that could have digits repeat. I got idea for both methods from the Internet. I do see that one uses brackets and the other doesn't, but I don't know the difference. import random

Re: Generate a random list of numbers

2015-11-19 Thread Seymore4Head
On Fri, 20 Nov 2015 15:38:36 +1100, Steven D'Aprano <st...@pearwood.info> wrote: >On Fri, 20 Nov 2015 03:05 pm, Seymore4Head wrote: > >> Why does a work and b doesn't? What I was trying to accomplish with b >> is to get a random list (of random length) that could have di

palindrome

2015-11-16 Thread Seymore4Head
http://www.practicepython.org/exercise/2014/03/12/06-string-lists.html Here is my answers. What would make it better? import random str1="" letcount=4 count=0 abc='abcdefghijklmnopqrstuvwxyz' while True: for i in range(letcount): a=random.choice(abc) str1+=a print str1

Re: palindrome

2015-11-16 Thread Seymore4Head
On Tue, 17 Nov 2015 10:09:27 +0530, Abhiram R <abhi.darkn...@gmail.com> wrote: >On Tue, Nov 17, 2015 at 9:59 AM, Seymore4Head <Seymore4Head@hotmail.invalid> >wrote: > >> http://www.practicepython.org/exercise/2014/03/12/06-string-lists.html >> >> Here is

Format numbers

2015-11-15 Thread Seymore4Head
Just screwing around making up practice problems. I can't get the format right. I am trying to learn how to get a output line to line up neatly. import random lo=1 hi=1 # I am adding or subtracting 0s from this input number fm=len(str(hi)) # This counts the digits of the input number print

Re: Format numbers

2015-11-15 Thread Seymore4Head
On Sun, 15 Nov 2015 19:00:42 +, MRAB <pyt...@mrabarnett.plus.com> wrote: >On 2015-11-15 17:30, Seymore4Head wrote: >> Just screwing around making up practice problems. I can't get the >> format right. I am trying to learn how to get a output line to line >> up

Re: Regular expressions

2015-11-05 Thread Seymore4Head
On Thu, 05 Nov 2015 11:54:20 +1100, Steven D'Aprano <st...@pearwood.info> wrote: >On Thu, 5 Nov 2015 10:02 am, Seymore4Head wrote: > >> So far the only use I have for regex is to replace slicing, but I >> think it is an improvement. > >I don't understand this. This i

Re: Regular expressions

2015-11-04 Thread Seymore4Head
On Wed, 04 Nov 2015 08:13:51 -0700, Michael Torrie wrote: >On 11/04/2015 01:57 AM, Peter Otten wrote: >> and then headed for the man page. Apparently there is a subset >> called "basic regular expressions": >> >> """> Basic vs Extended Regular Expressions >>In basic

Re: Regular expressions

2015-11-04 Thread Seymore4Head
On Wed, 4 Nov 2015 18:08:51 -0500, Terry Reedy wrote: >On 11/3/2015 10:23 PM, Steven D'Aprano wrote: > >> I don't even know what grep stands for. > >Get Regular Expression & Print Thanks, I may get around to that eventually. --

OT ish History Channel - The Invention of the Internet

2015-11-04 Thread Seymore4Head
https://www.youtube.com/watch?v=M9ebkjWU6Z4 -- https://mail.python.org/mailman/listinfo/python-list

Re: Regular expressions

2015-11-04 Thread Seymore4Head
On Wed, 04 Nov 2015 14:48:21 +1100, Steven D'Aprano wrote: >On Wednesday 04 November 2015 11:33, ru...@yahoo.com wrote: > >>> Not quite. Core language concepts like ifs, loops, functions, >>> variables, slicing, etc are the socket wrenches of the

Re: Regular expressions

2015-11-03 Thread Seymore4Head
On Tue, 3 Nov 2015 10:34:12 -0500, Joel Goldstick <joel.goldst...@gmail.com> wrote: >On Mon, Nov 2, 2015 at 10:17 PM, Seymore4Head <Seymore4Head@hotmail.invalid> >wrote: > >> On Mon, 2 Nov 2015 20:42:37 -0600, Tim Chase >> <python.l...@tim.thechases.co

Regular expressions

2015-11-02 Thread Seymore4Head
How do I make a regular expression that returns true if the end of the line is an asterisk -- https://mail.python.org/mailman/listinfo/python-list

Re: Regular expressions

2015-11-02 Thread Seymore4Head
On Mon, 2 Nov 2015 20:42:37 -0600, Tim Chase <python.l...@tim.thechases.com> wrote: >On 2015-11-02 20:09, Seymore4Head wrote: >> How do I make a regular expression that returns true if the end of >> the line is an asterisk > >Why use a regular expression? > >

Re: Regular expressions

2015-11-02 Thread Seymore4Head
On Tue, 3 Nov 2015 01:19:34 +, MRAB <pyt...@mrabarnett.plus.com> wrote: >On 2015-11-03 01:09, Seymore4Head wrote: >> How do I make a regular expression that returns true if the end of the >> line is an asterisk >> >To match an asterisk: \* > >To ma

OT Creepy Puzzle

2015-10-22 Thread Seymore4Head
http://gadgetzz.com/2015/10/12/this-creepy-puzzle-arrived-in-our-mail/ -- https://mail.python.org/mailman/listinfo/python-list

OT ish Blocking telemarketers

2015-06-12 Thread Seymore4Head
Is there a program what runs on Windows that uses a national blacklist to block phone calls? -- https://mail.python.org/mailman/listinfo/python-list

Re: OT ish Blocking telemarketers

2015-06-12 Thread Seymore4Head
On Fri, 12 Jun 2015 17:37:32 -0700 (PDT), sohcahto...@gmail.com wrote: On Friday, June 12, 2015 at 5:03:25 PM UTC-7, Seymore4Head wrote: On Fri, 12 Jun 2015 15:57:53 -0700 (PDT), sohcahto...@gmail.com wrote: On Friday, June 12, 2015 at 3:23:32 PM UTC-7, Seymore4Head wrote

Re: OT ish Blocking telemarketers

2015-06-12 Thread Seymore4Head
On Fri, 12 Jun 2015 15:57:53 -0700 (PDT), sohcahto...@gmail.com wrote: On Friday, June 12, 2015 at 3:23:32 PM UTC-7, Seymore4Head wrote: Is there a program what runs on Windows that uses a national blacklist to block phone calls? Are you talking about a Windows Phone? Windows for a PC doesn't

Secret code in Ex Machina

2015-05-16 Thread Seymore4Head
http://www.reddit.com/r/movies/comments/365f9b/secret_code_in_ex_machina/ -- https://mail.python.org/mailman/listinfo/python-list

Rounding a number

2015-04-30 Thread Seymore4Head
I have this page book marked. https://mkaz.com/2012/10/10/python-string-format/ I am getting numbers from sixty thousand to two hundred thousand. I would like to round them to the nearest thousand. So 65,253 should read 65,000. How? Total=2100 for x in range (10,35): count=1000/x print

Re: Rounding a number

2015-04-30 Thread Seymore4Head
On Thu, 30 Apr 2015 22:00:17 +0200, Thijs Engels th...@buckazoids.com wrote: round(65253, -3) might be what you are looking for... On Thu, Apr 30, 2015, at 21:49, Seymore4Head wrote: I have this page book marked. https://mkaz.com/2012/10/10/python-string-format/ I am getting numbers from

Re: Tit for tat

2015-04-28 Thread Seymore4Head
On Tue, 28 Apr 2015 15:16:05 -0700 (PDT), John Ladasky john_lada...@sbcglobal.net wrote: On Tuesday, April 28, 2015 at 1:10:14 PM UTC-7, Robert Kern wrote: On 2015-04-28 07:58, Steven D'Aprano wrote: I do believe he is trying to make a crude joke. I agree, that's what he's doing. And I find

Re: Tit for tat

2015-04-27 Thread Seymore4Head
On Sun, 26 Apr 2015 22:50:03 -0700 (PDT), John Ladasky john_lada...@sbcglobal.net wrote: On Sunday, April 26, 2015 at 6:41:08 PM UTC-7, Seymore4Head wrote: Richard Dawkins explains with passion the idea of game theory and tit for tat, or why cooperation with strangers is often a strong

Tit for tat

2015-04-26 Thread Seymore4Head
https://www.youtube.com/watch?v=48EWLj3gIJ8 Anyone here worked on trying a better strategy? -- https://mail.python.org/mailman/listinfo/python-list

Re: Tit for tat

2015-04-26 Thread Seymore4Head
On Mon, 27 Apr 2015 09:40:04 +1000, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: Anyone here worked on trying a better strategy? If you want us to spend the time visiting a link, please spend the time yourself to summarise why it's relevant

Great Math Mystery

2015-04-16 Thread Seymore4Head
I am guessing that a few here might find this program interesting. http://video.pbs.org/video/2365464997/ -- In an altercation with the police, complying with their orders greatly increases your chances of survival. -- https://mail.python.org/mailman/listinfo/python-list

Re: Sudoku solver

2015-03-29 Thread Seymore4Head
On Sun, 29 Mar 2015 23:17:23 +0100, BartC b...@freeuk.com wrote: On 29/03/2015 22:21, Mark Lawrence wrote: On 28/03/2015 23:50, BartC wrote: On 28/03/2015 03:39, Sayth wrote: Good test for pypy to see where it's speed sits between C and Python. Python 3.1: 1700 seconds (normal Python

How to extract a movie title out of a text file

2015-02-07 Thread Seymore4Head
What I would like to be able to do is download and save to a folder all the srr files in this Usenet group. alt.binaries.moovee I would then like to be able to search for a title in the text file. Anyone care to come up with the Python code to do this? --

Searching through more than one file.

2014-12-28 Thread Seymore4Head
I need to search through a directory of text files for a string. Here is a short program I made in the past to search through a single text file for a line of text. How can I modify the code to search through a directory of files that have different filenames, but the same extension? fname =

Re: Can you use self in __str__

2014-12-04 Thread Seymore4Head
On Thu, 4 Dec 2014 20:22:11 +0100 (CET), Jean-Michel Pichavant jeanmic...@sequans.com wrote: - Original Message - From: Seymore4Head Seymore4Head@Hotmail.invalid To: python-list@python.org Sent: Friday, 28 November, 2014 4:31:50 AM Subject: Re: Can you use self in __str__ On Thu

Can you use self in __str__

2014-11-27 Thread Seymore4Head
def __str__(self): s = Hand contains for x in self.hand: s = s + str(x) + return s This is part of a Hand class. I need a hand for the dealer and a hand for the player. dealer=Hand() player=Hand() This prints out 'Hand contains foo bar for both the

Re: Can you use self in __str__

2014-11-27 Thread Seymore4Head
On Thu, 27 Nov 2014 21:49:29 -0500, Dave Angel da...@davea.name wrote: class Hand: def __init__(self): self.hand = [] # create Hand object def __str__(self): s = 'Hand contains ' for x in self.hand: s = s + str(x) + return s I am

Re: Can you use self in __str__

2014-11-27 Thread Seymore4Head
On Fri, 28 Nov 2014 11:04:26 +0800, Shiyao Ma i...@introo.me wrote: 2014-11-28 9:26 GMT+08:00 Seymore4Head Seymore4Head@hotmail.invalid: def __str__(self): s = Hand contains for x in self.hand: s = s + str(x) + return s This is part of a Hand

Loading Python 2.7

2014-11-24 Thread Seymore4Head
When I installed Python, I installed 2.7 and 3.4. I am using XP. I have been using Python 3 by just right clicking on a py file and choose Edit with Idle. That works just fine when I am using 3, but since I also use 2.7 for practice from online courses I haven't figured out how to use the

Re: I have no class

2014-11-23 Thread Seymore4Head
On Sun, 23 Nov 2014 17:00:08 +1100, Chris Angelico ros...@gmail.com wrote: On Sun, Nov 23, 2014 at 3:15 PM, Seymore4Head Seymore4Head@hotmail.invalid wrote: Traceback (most recent call last): File C:\Documents and Settings\Administrator\Desktop\rps.py, line 7, in module a=RPS() File

Re: I have no class

2014-11-23 Thread Seymore4Head
On Sun, 23 Nov 2014 10:16:28 -0500, Dave Angel da...@davea.name wrote: On 11/23/2014 05:52 AM, Seymore4Head wrote: On Sun, 23 Nov 2014 17:00:08 +1100, Chris Angelico ros...@gmail.com wrote: 1) Python's namespacing rules mean that 'key' is a part of the RPS class, and can be referred

Re: I have no class

2014-11-23 Thread Seymore4Head
On Sun, 23 Nov 2014 11:14:34 -0500, Dave Angel da...@davea.name wrote: On 11/23/2014 10:54 AM, Seymore4Head wrote: On Sun, 23 Nov 2014 10:16:28 -0500, Dave Angel da...@davea.name wrote: On 11/23/2014 05:52 AM, Seymore4Head wrote: On Sun, 23 Nov 2014 17:00:08 +1100, Chris Angelico ros

I have no class

2014-11-22 Thread Seymore4Head
What do I need to do to make a and b have different values? import random class RPS: throw=random.randrange(3) a=RPS b=RPS print (a ,a.throw) print (b ,b.throw) if a.throw == b.throw: print(Tie) elif (a.throw - b.throw)%3==1: print(a Wins) else: print(b Wins) -

Re: I have no class

2014-11-22 Thread Seymore4Head
On Sat, 22 Nov 2014 22:08:31 -0500, random...@fastmail.us wrote: On Sat, Nov 22, 2014, at 21:47, Seymore4Head wrote: What do I need to do to make a and b have different values? import random class RPS: throw=random.randrange(3) a=RPS b=RPS print (a ,a.throw) print (b ,b.throw

Re: I have no class

2014-11-22 Thread Seymore4Head
On Sat, 22 Nov 2014 19:09:27 -0800 (PST), Rustom Mody rustompm...@gmail.com wrote: On Sunday, November 23, 2014 8:17:24 AM UTC+5:30, Seymore4Head wrote: What do I need to do to make a and b have different values? import random class RPS: throw=random.randrange(3) a=RPS b=RPS print

Re: I have no class

2014-11-22 Thread Seymore4Head
On Sat, 22 Nov 2014 22:14:21 -0500, Ned Batchelder n...@nedbatchelder.com wrote: On 11/22/14 9:47 PM, Seymore4Head wrote: What do I need to do to make a and b have different values? import random class RPS: throw=random.randrange(3) a=RPS b=RPS This simply makes a and b into other

Re: I have no class

2014-11-22 Thread Seymore4Head
On Sat, 22 Nov 2014 22:52:33 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sat, Nov 22, 2014 at 10:35 PM, Seymore4Head Seymore4Head@hotmail.invalid wrote: On Sat, 22 Nov 2014 22:14:21 -0500, Ned Batchelder n...@nedbatchelder.com wrote: On 11/22/14 9:47 PM, Seymore4Head wrote: What

Re: I have no class

2014-11-22 Thread Seymore4Head
On Sat, 22 Nov 2014 19:55:08 -0800 (PST), Rustom Mody rustompm...@gmail.com wrote: On Sunday, November 23, 2014 9:06:03 AM UTC+5:30, Seymore4Head wrote: Now I am trying to add a dictionary, but it is broke too. How do I fix: class RPS: key={0:rock, 1:paper,2:scissors}; def __init__

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Seymore4Head
On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote: Thanks for your help, but i have no idea to find a project that i can complete,i am now in perplexed for what to do Then

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Seymore4Head
On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence breamore...@yahoo.co.uk wrote: On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Seymore4Head
On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence breamore...@yahoo.co.uk wrote: On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote

Re: Classes

2014-11-01 Thread Seymore4Head
On Sat, 01 Nov 2014 12:00:46 -0400, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 31 Oct 2014 19:32:13 -0400, Seymore4Head Seymore4Head@Hotmail.invalid declaimed the following: class Rectangle(object): def __init__(self, length, width=None): self.length = length

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 10:05:03 +0100, ast nom...@invalid.com wrote: Seymore4Head Seymore4Head@Hotmail.invalid a écrit dans le message de news:51755at03r0bidjqh3qf0hhpvjr8756...@4ax.com... class pet: def set_age(self,age): self.age=age def get_age(self): return self.age

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 09:59:30 GMT, alister alister.nospam.w...@ntlworld.com wrote: On Thu, 30 Oct 2014 17:34:57 -0400, Seymore4Head wrote: On Thu, 30 Oct 2014 14:28:19 -0700, Larry Hudson org...@yahoo.com wrote: On 10/30/2014 01:16 PM, Seymore4Head wrote: class pet: def set_age(self

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 15:49:43 + (UTC), Grant Edwards invalid@invalid.invalid wrote: On 2014-10-31, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Oct 31, 2014 at 8:05 AM, Seymore4Head Seymore4Head@hotmail.invalid wrote: Because the topic of that lesson was getter setter. I can construct

Re: Classes

2014-10-31 Thread Seymore4Head
On Sat, 1 Nov 2014 03:37:29 +1100, Chris Angelico ros...@gmail.com wrote: On Sat, Nov 1, 2014 at 3:31 AM, Seymore4Head Seymore4Head@hotmail.invalid wrote: [presumably quoting his course material] In this class, we will follow the practice of accessing the contents of objects using methods known

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 10:05:03 +0100, ast nom...@invalid.com wrote: Seymore4Head Seymore4Head@Hotmail.invalid a écrit dans le message de news:51755at03r0bidjqh3qf0hhpvjr8756...@4ax.com... class pet: def set_age(self,age): self.age=age def get_age(self): return self.age

Re: Teaching Python

2014-10-31 Thread Seymore4Head
On Mon, 29 Sep 2014 11:44:01 -0400, Seymore4Head Seymore4Head@Hotmail.invalid wrote: On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban urbang...@gmail.com wrote: Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle

Re: Classes

2014-10-31 Thread Seymore4Head
On Sat, 01 Nov 2014 04:06:44 +1100, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Seymore4Head wrote: Because the topic of that lesson was getter setter. I can construct an __init___ but I was practicing get/set. What lesson is that? Using getters/setters is discouraged

Re: Classes

2014-10-31 Thread Seymore4Head
On Sat, 1 Nov 2014 04:02:33 +1100, Chris Angelico ros...@gmail.com wrote: On Sat, Nov 1, 2014 at 3:47 AM, Seymore4Head Seymore4Head@hotmail.invalid wrote: inbuilt tutorial? The course is free. You can't beat the price. It is only for a few more weeks. Trying to learn from reading

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 12:39:34 -0500, Zachary Ware zachary.ware+pyl...@gmail.com wrote: On Fri, Oct 31, 2014 at 12:31 PM, Seymore4Head Seymore4Head@hotmail.invalid wrote: I run across this page frequently. To me, this is examples. While examples can be quite useful, I don't call this a tutorial

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 10:43:19 -0700, Rob Gaddi rgaddi@technologyhighland.invalid wrote: Define a Square class, subclassed from Rectangle. Use getters/setters to enforce that the length and width must be equal. Confirm that length and width remain locked, and that perimeter() and area() work

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 19:31:01 +0100, ast nom...@invalid.com wrote: Seymore4Head Seymore4Head@Hotmail.invalid a écrit dans le message de news:rbf75ah9l1jp9e72gqr0ncu7bau8cnt...@4ax.com... What material have you used to take you up to classes? It's a french classroom on the web http

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 14:18:44 -0400, Seymore4Head Seymore4Head@Hotmail.invalid wrote: On Fri, 31 Oct 2014 10:43:19 -0700, Rob Gaddi rgaddi@technologyhighland.invalid wrote: Define a Square class, subclassed from Rectangle. Use getters/setters to enforce that the length and width must be equal

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 14:41:08 -0400, Joel Goldstick joel.goldst...@gmail.com wrote: On Fri, Oct 31, 2014 at 2:31 PM, ast nom...@invalid.com wrote: Seymore4Head Seymore4Head@Hotmail.invalid a écrit dans le message de news:rbf75ah9l1jp9e72gqr0ncu7bau8cnt...@4ax.com... What material have you

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 18:57:31 -0400, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 31 Oct 2014 14:18:44 -0400, Seymore4Head Seymore4Head@Hotmail.invalid declaimed the following: On Fri, 31 Oct 2014 10:43:19 -0700, Rob Gaddi rgaddi@technologyhighland.invalid wrote: Define a Square class

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 19:22:13 -0400, Seymore4Head Seymore4Head@Hotmail.invalid wrote: On Fri, 31 Oct 2014 18:57:31 -0400, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 31 Oct 2014 14:18:44 -0400, Seymore4Head Seymore4Head@Hotmail.invalid declaimed the following: On Fri, 31 Oct 2014 10

Classes

2014-10-30 Thread Seymore4Head
class pet: def set_age(self,age): self.age=age def get_age(self): return self.age pax=pet pax.set_age(4) Traceback (most recent call last): File C:\Functions\test.py, line 18, in module pax.set_age(4) TypeError: set_age() missing 1 required positional argument:

Re: Classes

2014-10-30 Thread Seymore4Head
On Thu, 30 Oct 2014 13:34:04 -0700, Rob Gaddi rgaddi@technologyhighland.invalid wrote: On Thu, 30 Oct 2014 16:16:51 -0400 Seymore4Head Seymore4Head@Hotmail.invalid wrote: class pet: def set_age(self,age): self.age=age def get_age(self): return self.age pax=pet

Re: Classes

2014-10-30 Thread Seymore4Head
On Thu, 30 Oct 2014 13:33:01 -0700 (PDT), sohcahto...@gmail.com wrote: On Thursday, October 30, 2014 1:19:57 PM UTC-7, Seymore4Head wrote: class pet: def set_age(self,age): self.age=age def get_age(self): return self.age pax=pet pax.set_age(4) Traceback (most

Re: Classes

2014-10-30 Thread Seymore4Head
On Thu, 30 Oct 2014 14:28:19 -0700, Larry Hudson org...@yahoo.com wrote: On 10/30/2014 01:16 PM, Seymore4Head wrote: class pet: def set_age(self,age): self.age=age def get_age(self): return self.age pax=pet pax.set_age(4) Traceback (most recent call last

Re: Classes and the command line

2014-10-27 Thread Seymore4Head
On Sun, 26 Oct 2014 23:32:08 -0400, Seymore4Head Seymore4Head@Hotmail.invalid wrote: On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: I am trying to learn classes. I am currently using Python 2.7 at the command

Classes and the command line

2014-10-26 Thread Seymore4Head
I am trying to learn classes. I am currently using Python 2.7 at the command line. If you try to type commands at the command line and make the slightest mistake you have to start over. I was trying to copy and paste these instructions into the command prompt.

Python tutorials

2014-10-26 Thread Seymore4Head
Python tutorials http://anandology.com/python-practice-book/object_oriented_programming.html This is a good onebut it gets too deep too fast. This is the best thing I have read so far to help me understand classes. What I would like to see is more examples of computing before starting on

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
Your message showed up as unavailable on my server I have to cut and paste Google Groups to reply. (I am going to change news servers probably tomorrow to try to fix that) So the quoting is going to be bad. Why not idle? And if in general you are at python 3, why 2.7 here? There are enough

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: I am trying to learn classes. I am currently using Python 2.7 at the command line. (I think you mean “the interactive Python interpreter”, or just “the Python

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
On Mon, 27 Oct 2014 14:10:01 +1100, Chris Angelico ros...@gmail.com wrote: On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Right. There is line-by-line history, and editing enabled with the “readline” plug-in. (This is an advantage of using a programmer-friendly

Re: I am out of trial and error again Lists

2014-10-25 Thread Seymore4Head
On Sat, 25 Oct 2014 14:23:44 -0400, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head Seymore4Head@Hotmail.invalid declaimed the following: I do get the difference. I don't actually use Python 2. I use CodeSkulptor. I do have Python 3 installed

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Thu, 23 Oct 2014 21:56:31 -0700 (PDT), Rustom Mody rustompm...@gmail.com wrote: On Thursday, October 23, 2014 10:33:57 PM UTC+5:30, Seymore4Head wrote: On Thu, 23 Oct 2014 15:55:35 + (UTC), Denis McMahon wrote: On Thu, 23 Oct 2014 10:04:56 -0400, Seymore4Head wrote: On Thu, 23 Oct

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 08:05:01 +0100, Mark Lawrence breamore...@yahoo.co.uk wrote: On 22/10/2014 21:30, Seymore4Head wrote: def nametonumber(name): lst=[] for x,y in enumerate (name): lst=lst.append(y) print (lst) return (lst) a=[1-800-getcharter] print

  1   2   3   >