OT Winmx works again

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

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 woul

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: [Err

Re: Python path and append

2016-04-25 Thread Seymore4Head
On Tue, 19 Apr 2016 18:29:38 -0400, Seymore4Head 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.write(line+" *") This do

Re: Python path and append

2016-04-25 Thread Seymore4Head
On Mon, 25 Apr 2016 18:24:02 - (UTC), Rob Gaddi wrote: >Seymore4Head wrote: > >> On Tue, 19 Apr 2016 18:29:38 -0400, Seymore4Head >> wrote: >> >> I am going to forget using a directory path. >> I would like to take the file win.txt and append a space

Re: Python path and append

2016-04-25 Thread Seymore4Head
e 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 >Sent: 25

Re: Python path and append

2016-04-25 Thread Seymore4Head
removing 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
On Mon, 25 Apr 2016 21:26:34 + (UTC), John Gordon wrote: >In <27nshbp40p1llr231dqm31p754tvurk...@4ax.com> Seymore4Head > writes: > >> On Tue, 19 Apr 2016 18:29:38 -0400, Seymore4Head >> wrote: > >> I am going to forget using a directory path. >>

Re: Python path and append

2016-04-26 Thread Seymore4Head
On Tue, 26 Apr 2016 11:53:57 +1000, Steven D'Aprano 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 that import os >> fix

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 = open('outfile.txt', 'w') >outfi

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 se

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 wrote: >On Tue, Jul 5, 2016 at 6:05 PM, Seymore4Head > wrote: >> import os >> >> f_in = open('win.txt', 'r') >> f_out = open('win_new.txt', 'w') >> >> for li

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 wrote: >On Tue, Jul 5, 2016 at 6:29 PM, Seymore4Head > wrote: >> On Tue, 5 Jul 2016 18:27:25 -0400, Joel Goldstick >> wrote: >> >>>On Tue, Jul 5, 2016 at 6:05 PM, Seymore4Head >>> wrote: >>

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 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().sp

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 wrote: >On Tue, Jul 5, 2016 at 7:03 PM, MRAB wrote: >> On 2016-07-05 23:05, Seymore4Head wrote: >>> >>> import os >>> >>> f_in = open('win.txt', 'r') >>> f

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 wrote: >On Tue, 5 Jul 2016 19:15:23 -0400, Joel Goldstick > wrote: > >>On Tue, Jul 5, 2016 at 7:03 PM, MRAB wrote: >>> On 2016-07-05 23:05, Seymore4Head wrote: >>>> >>>> import os >>

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 wrote: >On Wed, Jul 6, 2016 at 9:04 AM, Seymore4Head > wrote: >> I am using XP and launching the program from another drive/folder than >> the boot drive. >> >> The program has .py extension and the icon shows i

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 wrote: >On 2016-07-06 00:45, Seymore4Head wrote: >> On Tue, 05 Jul 2016 19:29:21 -0400, Seymore4Head >> wrote: >> >>>On Tue, 5 Jul 2016 19:15:23 -0400, Joel Goldstick >>> wrote: >>> >>>>On Tue,

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. -- https://mail.python.org/mailman/list

Re: Does Python 2.7 do Open Office

2015-12-03 Thread Seymore4Head
On Thu, 3 Dec 2015 00:47:42 +, MRAB 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 >> wanted to ask to make sure. >

Re: Does Python 2.7 do Open Office

2015-12-03 Thread Seymore4Head
On Thu, 03 Dec 2015 01:54:16 +0100, Laura Creighton 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 compatible together, but

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

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 f

I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
def nametonumber(name): lst=[""] for x,y in enumerate (name): lst=lst.append(y) print (lst) return (lst) a=["1-800-getcharter"] print (nametonumber(a))#18004382427837 The syntax for when to use a () and when to use [] still throws me a curve. For now, I am trying to

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 16:57:00 -0400, Joel Goldstick wrote: >On Wed, Oct 22, 2014 at 4:30 PM, Seymore4Head > wrote: >> def nametonumber(name): >> lst=[""] >> for x,y in enumerate (name): >> lst=lst.append(y) >> print (lst) >>

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 14:35:18 -0700 (PDT), sohcahto...@gmail.com wrote: >On Wednesday, October 22, 2014 2:06:35 PM UTC-7, Seymore4Head wrote: >> On Wed, 22 Oct 2014 16:57:00 -0400, Joel Goldstick >> wrote: >> >> >On Wed, Oct 22, 2014 at 4:30 PM, Seymore4Head >

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: One more question. if y in str(range(10) Why doesn't that work. I commented it out and just did it "long hand" def nametonumber(name): lst=[] nx=[] for x in (name): lst.append(x) for y in (lst):

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
BTW I know I didn't check for Caps yet. On Wed, 22 Oct 2014 18:30:17 -0400, Seymore4Head wrote: >On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head > wrote: > >One more question. >if y in str(range(10) >Why doesn't that work. >I commented it out and just did it

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 22:43:14 + (UTC), Denis McMahon wrote: >On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: > >> def nametonumber(name): >> lst=[""] >> for x,y in enumerate (name): >> lst=lst.append(y) >> print (ls

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 23:55:57 +0100, Mark Lawrence wrote: >On 22/10/2014 23:30, Seymore4Head wrote: >> On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head >> wrote: >> >> One more question. >> if y in str(range(10) >> Why doesn't that work. > >Inval

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Thu, 23 Oct 2014 00:44:01 +0100, Mark Lawrence wrote: >On 23/10/2014 00:26, Seymore4Head wrote: >> On Wed, 22 Oct 2014 23:55:57 +0100, Mark Lawrence >> wrote: >> >>> On 22/10/2014 23:30, Seymore4Head wrote: >>>> On Wed, 22 Oct 2014 16:30:37 -0400, Se

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Thu, 23 Oct 2014 11:05:08 +1100, Steven D'Aprano wrote: >Seymore4Head wrote: > >> Those string errors were desperate attempts to fix the "append" error >> I didn't understand. > >Ah, the good ol' "make random changes to the code until t

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Thu, 23 Oct 2014 02:31:57 +0100, MRAB wrote: >On 2014-10-23 01:10, Seymore4Head wrote: >> On Thu, 23 Oct 2014 11:05:08 +1100, Steven D'Aprano >> wrote: >> >>>Seymore4Head wrote: >>> >>>> Those string errors were desperate attempts to fi

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Thu, 23 Oct 2014 11:37:27 +1000, alex23 wrote: >On 23/10/2014 10:02 AM, Seymore4Head wrote: >> On Thu, 23 Oct 2014 00:44:01 +0100, Mark Lawrence >> wrote: >>>>>> One more question. >>>>>> if y in str(range(10) >>>>>>

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 21:35:19 -0400, Seymore4Head wrote: >On Thu, 23 Oct 2014 02:31:57 +0100, MRAB >wrote: > >>On 2014-10-23 01:10, Seymore4Head wrote: >>> On Thu, 23 Oct 2014 11:05:08 +1100, Steven D'Aprano >>> wrote: >>> >>>>Seymor

Re: I am out of trial and error again Lists

2014-10-22 Thread Seymore4Head
On Wed, 22 Oct 2014 19:58:24 -0700, Larry Hudson wrote: >On 10/22/2014 05:02 PM, Seymore4Head wrote: >> On Thu, 23 Oct 2014 00:44:01 +0100, Mark Lawrence >> wrote: > > (This is in reference to the line: if y in str(range(10)):) > >>> I suggest you try st

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 00:10:28 -0700, Larry Hudson wrote: >On 10/22/2014 03:30 PM, Seymore4Head wrote: >> On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head >> wrote: >> >> One more question. >> if y in str(range(10) >> Why doesn't that work. >

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 09:23:29 -0400, Dennis Lee Bieber wrote: >On Thu, 23 Oct 2014 00:10:28 -0700, Larry Hudson > declaimed the following: > > >>I know you are trying to explore lists here, but I found myself somewhat >>intrigued with the >>problem itself, so I wrote a different version. This v

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 06:42:43 -0700 (PDT), Rustom Mody wrote: >On Thursday, October 23, 2014 1:39:32 PM UTC+5:30, Mark Lawrence wrote: >> On 23/10/2014 08:56, Ian Kelly wrote: >> > On Thu, Oct 23, 2014 at 1:20 AM, Mark Lawrence wrote: >> >> If you were to read and digest what is written it would

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 09:15:16 + (UTC), Denis McMahon wrote: >On Wed, 22 Oct 2014 18:30:17 -0400, Seymore4Head wrote: > >> One more question. >> if y in str(range(10) >> Why doesn't that work. >> I commented it out and just did it "long hand" >

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 08:20:32 +0100, Mark Lawrence wrote: >On 23/10/2014 02:57, Seymore4Head wrote: >> On Wed, 22 Oct 2014 21:35:19 -0400, Seymore4Head >> wrote: >> >>> On Thu, 23 Oct 2014 02:31:57 +0100, MRAB >>> wrote: >>> >>>> O

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 16:25:28 +0200, giacomo boffi wrote: >Rustom Mody writes: > >> [As best as I can make out the OP is not using the standalone >> interpreter >> nor idle >> nor (the many options like) python-interpreter-inside-emacs >> nor ipython >> nor ... > >but CodeSkulptor

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 16:40:22 +0200, giacomo boffi wrote: >Seymore4Head writes: > >> Because most of the practice I am getting is not using Python. I >> use Codeskulptor. > >Seymore, > >it's been months that you're struggling with python, if you happen

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
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 2014 09:15:16 + (UTC), Denis McMahon >> wrote: > >>>Try the following 3 commands at the console: > >You obviously

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 13:01:18 -0400, 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 2014 09:15:16 + (UTC), Denis McMahon >>> wrote:

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 13:39:06 -0600, Ian Kelly wrote: >On Thu, Oct 23, 2014 at 11:07 AM, Seymore4Head > wrote: >> BTW I forgot to add that example 2 and 3 don't seem to be too useful >> in Python 3, but they are in Python 2. I don't understand how the >> Pyth

Re: I am out of trial and error again Lists

2014-10-23 Thread Seymore4Head
On Thu, 23 Oct 2014 13:39:06 -0600, Ian Kelly wrote: >On Thu, Oct 23, 2014 at 11:07 AM, Seymore4Head > wrote: >> BTW I forgot to add that example 2 and 3 don't seem to be too useful >> in Python 3, but they are in Python 2. I don't understand how the >> Pyth

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 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: >&g

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 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) >>

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 09:12:28 +0100, Mark Lawrence wrote: >On 24/10/2014 08:05, Mark Lawrence wrote: >> On 22/10/2014 21:30, Seymore4Head wrote: >>> def nametonumber(name): >>> lst=[""] >>> for x,y in enumerate (name): >>>

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Sat, 25 Oct 2014 01:51:41 +1100, Chris Angelico wrote: >On Sat, Oct 25, 2014 at 1:38 AM, Seymore4Head > wrote: >> I tried list(range(10) I thought that would work in Python 3. It >> didn't. > >This is your problem: You say "it didn't work". That

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 08:56:31 -0700 (PDT), Rustom Mody wrote: >On Friday, October 24, 2014 8:11:12 PM UTC+5:30, Seymore4Head wrote: >> On Thu, 23 Oct 2014 21:56:31 -0700 (PDT), Rustom Mody wrote: >> >> >On Thursday, October 23, 2014 10:33:57 PM UTC+5:30, Seymore4Head wro

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Sat, 25 Oct 2014 03:47:51 +1100, Chris Angelico wrote: >On Sat, Oct 25, 2014 at 3:37 AM, Seymore4Head > wrote: >> When I use list(range(10)) I get: >> Traceback (most recent call last): >> File "C:/Functions/name to number digit.py", line 37, in >>

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 09:54:23 -0700 (PDT), Rustom Mody wrote: >Totally befuddled myself! > >Are you deliberately misspelling list to lst >and hoping the error will go away. > >And Puh LEESE >dont post screen shots of good ol ASCII text I didn't do that on purpose. I make a lot of typing mistakes

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 19:18:12 +0200, "Albert Visser" wrote: >On Fri, 24 Oct 2014 19:03:47 +0200, Seymore4Head > wrote: > >> >> http://i.imgur.com/DTc5zoL.jpg >> >> The interpreter. I don't know how to use that either. >> > >It'

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 10:42:08 -0700 (PDT), Rustom Mody wrote: >On Friday, October 24, 2014 10:55:44 PM UTC+5:30, Seymore4Head wrote: >> On Fri, 24 Oct 2014 19:18:12 +0200, "Albert Visser" wrote: >> >> >On Fri, 24 Oct 2014 19:03:47 +0200, Seymore4Head wrote: &

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 11:52:15 -0600, Ian Kelly wrote: >On Fri, Oct 24, 2014 at 11:03 AM, Seymore4Head > wrote: >> Actually I was a little frustrated when I added that line back in as >> the other lines all work. >> Using list(range(10)) Doesn't throw an error bu

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
I meant to type: if y in range(1,10) doesn't work. Sigh Sorry On Fri, 24 Oct 2014 14:15:13 -0400, Seymore4Head wrote: >On Fri, 24 Oct 2014 11:52:15 -0600, Ian Kelly >wrote: > >>On Fri, Oct 24, 2014 at 11:03 AM, Seymore4Head >> wrote: >>> Actually I was a

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 19:40:39 +0100, Mark Lawrence wrote: >On 24/10/2014 19:20, Seymore4Head wrote: >> I meant to type: >> if y in range(1,10) doesn't work. >> Sigh >> Sorry >> > >How many more times, state what you expect to happen and what actually &

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 11:57:12 -0700 (PDT), sohcahto...@gmail.com wrote: >On Friday, October 24, 2014 11:17:53 AM UTC-7, Seymore4Head wrote: >> On Fri, 24 Oct 2014 11:52:15 -0600, Ian Kelly >> wrote: >> >> >On Fri, Oct 24, 2014 at 11:03 AM, Seymore4Head >> &g

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 12:25:33 -0700 (PDT), sohcahto...@gmail.com wrote: >On Friday, October 24, 2014 12:12:10 PM UTC-7, Seymore4Head wrote: >> On Fri, 24 Oct 2014 11:57:12 -0700 (PDT), sohcahto...@gmail.com wrote: >> >> >On Friday, October 24, 2014 11:17:53 AM UTC-7, Seym

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 12:55:19 -0700 (PDT), sohcahto...@gmail.com wrote: >On Friday, October 24, 2014 12:36:23 PM UTC-7, Seymore4Head wrote: >> On Fri, 24 Oct 2014 12:25:33 -0700 (PDT), sohcahto...@gmail.com wrote: >> >> >On Friday, October 24, 2014 12:12:10 PM UTC-7, Seym

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 20:37:31 + (UTC), Denis McMahon wrote: >On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head wrote: > >> I tried list(range(10) > >This is missing a ")" > >It probably sat there waiting for you to finish the line. > >list(range(10)) &

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 21:19:22 + (UTC), Denis McMahon wrote: >On Fri, 24 Oct 2014 14:15:13 -0400, Seymore4Head wrote: > >> I do understand that. 7 is a number and "7" is a string. >> What my question was...and still is...is why Python 3 fails when I try >>

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 21:48:14 + (UTC), Denis McMahon wrote: >On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head wrote: > >> Thanks everyone for your suggestions. > >Try loading the following in codeskulptor: > >http://www.codeskulptor.org/#user38_j6kGKgeOMr_0.py That

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: Thanks for all the helpful replies. I just discovered that there is something wrong with my news feed. Some of the messages did not make it to me. I can go back and read this thread in Google Groups but I can't reply to it. If I m

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 18:09:59 -0400 (EDT), Dave Angel wrote: >Seymore4Head Wrote in message: >> On Fri, 24 Oct 2014 09:54:23 -0700 (PDT), Rustom Mody >> wrote: >> >>>Totally befuddled myself! >>> >>>Are you deliberately misspelling list to lst

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: name="123-xyz-abc" a=range(10) b=list(range(10)) c=str(list(range(10))) print ("a",(a)) print ("b",(b)) print ("c",(c)) for x in name: if x in a: print ("a",(x))

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 16:27:58 -0700 (PDT), Rustom Mody wrote: >On Saturday, October 25, 2014 4:30:47 AM UTC+5:30, Seymore4Head wrote: >> On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: >> >> name="123-xyz-abc" >> a=range(10) >> b=list(range(

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 23:21:43 + (UTC), Denis McMahon wrote: >On Fri, 24 Oct 2014 16:58:00 -0400, Seymore4Head wrote: > >> I make lots of typing mistakes. It is not that. Did you see the short >> example I posted? >> >> name="123-xyz-abc" &

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 19:48:16 -0400, Seymore4Head wrote: >On Fri, 24 Oct 2014 16:27:58 -0700 (PDT), Rustom Mody > wrote: > >>On Saturday, October 25, 2014 4:30:47 AM UTC+5:30, Seymore4Head wrote: >>> On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: >>> &g

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head wrote: name="012" b=list(range(3)) print (name[1]) print (b[1]) if name[1] == b[1]: print ("Eureka!") else: print ("OK, I get it") -- https://mail.python.org/mailman/listinfo/python-list

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Sat, 25 Oct 2014 01:20:53 +0100, MRAB wrote: >On 2014-10-25 00:57, Seymore4Head wrote: >[snip] >> Wait! I don't get it. >> name="012" >> b=list(range(3)) >> print (name[1]) >> print (b[1]) >> 1 >> 1 >> >> I forgot th

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 20:27:03 -0400, Terry Reedy wrote: >On 10/24/2014 6:27 PM, Seymore4Head wrote: > >> I promise I am not trying to frustrate anyone. I know I have. > >Seymore, if you want to learn real Python, download and install 3.4.2 >and either use the Idle Sh

Re: I am out of trial and error again Lists

2014-10-24 Thread Seymore4Head
On Fri, 24 Oct 2014 19:16:21 -0700, Larry Hudson wrote: >On 10/24/2014 07:38 AM, Seymore4Head wrote: > >> I do get the difference. I don't actually use Python 2. I use >> CodeSkulptor. I do have Python 3 installed. Actually I have Python 2 >> installed but IDLE

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 wrote: >On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head > declaimed the following: > >> >>I do get the difference. I don't actually use Python 2. I use >>CodeSkulptor. I do have Python 3 installed. Actu

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. http://en.wikibooks.org/wiki/Python_

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 drawi

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 wrote: >Seymore4Head 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 shell”.) > >

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
On Mon, 27 Oct 2014 14:10:01 +1100, Chris Angelico wrote: >On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney 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 >> operating system, which MS Windows sa

Re: Classes and the command line

2014-10-27 Thread Seymore4Head
On Sun, 26 Oct 2014 23:32:08 -0400, Seymore4Head wrote: >On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney > wrote: > >>Seymore4Head writes: >> >>> I am trying to learn classes. >>> I am currently using Python 2.7 at the command line. >> >>(I thin

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 pax.set_age(4) TypeError: set_age() missing 1 required positional argument: 'age' I

Re: Classes

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

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 sel

Re: Classes

2014-10-30 Thread Seymore4Head
On Thu, 30 Oct 2014 14:28:19 -0700, Larry Hudson 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_

Re: Classes

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

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 09:59:30 GMT, alister wrote: >On Thu, 30 Oct 2014 17:34:57 -0400, Seymore4Head wrote: > >> On Thu, 30 Oct 2014 14:28:19 -0700, Larry Hudson >> wrote: >> >>>On 10/30/2014 01:16 PM, Seymore4Head wrote: >>>> class pet: >>&g

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 15:49:43 + (UTC), Grant Edwards wrote: >On 2014-10-31, Ian Kelly wrote: >> On Fri, Oct 31, 2014 at 8:05 AM, Seymore4Head >> wrote: >>> Because the topic of that lesson was getter setter. >>> I can construct an __init___ but I was practi

Re: Classes

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

Re: Classes

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

Re: Teaching Python

2014-10-31 Thread Seymore4Head
On Mon, 29 Sep 2014 11:44:01 -0400, Seymore4Head wrote: >On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban >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 tu

Re: Classes

2014-10-31 Thread Seymore4Head
On Sat, 01 Nov 2014 04:06:44 +1100, Steven D'Aprano 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 wrote: >On Sat, Nov 1, 2014 at 3:47 AM, Seymore4Head > wrote: >> inbuilt tutorial? >> >> The course is free. You can't beat the price. It is only for a few >> more weeks. >> >> Trying to learn fro

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 12:39:34 -0500, Zachary Ware wrote: >On Fri, Oct 31, 2014 at 12:31 PM, Seymore4Head > 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. I have >> found

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 10:43:19 -0700, Rob Gaddi 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 >correctly. class Rectangle:

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 19:31:01 +0100, "ast" wrote: > >"Seymore4Head" 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

Re: Classes

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

Re: Classes

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

Re: Classes

2014-10-31 Thread Seymore4Head
On Fri, 31 Oct 2014 18:57:31 -0400, Dennis Lee Bieber wrote: >On Fri, 31 Oct 2014 14:18:44 -0400, Seymore4Head > declaimed the following: > >>On Fri, 31 Oct 2014 10:43:19 -0700, Rob Gaddi >> wrote: >> >> >>>Define a Square class, subclassed from Rectangl

  1   2   3   >