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
--
https://mail.python.org/mailman/listinfo/python-list
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
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.
>&
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
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
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():
>&
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:
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'
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
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 =
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
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
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
>>
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
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
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
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:
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
https://www.youtube.com/watch?v=g-dKXOlsf98
--
https://mail.python.org/mailman/listinfo/python-list
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
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
>>
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.
--
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
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
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
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
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
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
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
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
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
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.
--
https://www.youtube.com/watch?v=M9ebkjWU6Z4
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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?
>
>
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
http://gadgetzz.com/2015/10/12/this-creepy-puzzle-arrived-in-our-mail/
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
http://www.reddit.com/r/movies/comments/365f9b/secret_code_in_ex_machina/
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
https://www.youtube.com/watch?v=48EWLj3gIJ8
Anyone here worked on trying a better strategy?
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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?
--
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 =
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
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
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
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
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
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
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
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
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)
-
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
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
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
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
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__
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 270 matches
Mail list logo